Skip to content

Commit

Permalink
ensure C++ does not free the DebugRegistry while we are using it (Jul…
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and Xnartharax committed Apr 13, 2023
1 parent 963d7e4 commit d3145c1
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 d3145c1

Please sign in to comment.