Skip to content

Commit

Permalink
ensure C++ does not free the DebugRegistry while we are using it (#49139
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vtjnash authored Mar 24, 2023
1 parent e90f6a3 commit a922b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ using namespace llvm;
#include "julia_assert.h"
#include "debug-registry.h"

static JITDebugInfoRegistry DebugRegistry;
static JITDebugInfoRegistry *DebugRegistry = new JITDebugInfoRegistry;

static JITDebugInfoRegistry &getJITDebugRegistry() JL_NOTSAFEPOINT {
return DebugRegistry;
return *DebugRegistry;
}

struct debug_link_info {
Expand Down

0 comments on commit a922b59

Please sign in to comment.