Skip to content

Commit

Permalink
Remove unused code and try to make analyzegc happier
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Dec 28, 2023
1 parent 4e5b98a commit b61062b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1676,15 +1676,6 @@ void SetOpaquePointer(LLVMContext &ctx) {
#endif
}

extern "C" JL_DLLEXPORT_CODEGEN
int JuliaUsesOpaquePtrs() {
#ifndef JL_LLVM_OPAQUE_POINTERS
return 0;
#else
return 1;
#endif
}

llvm::DataLayout jl_create_datalayout(TargetMachine &TM) {
// Mark our address spaces as non-integral
auto jl_data_layout = TM.createDataLayout();
Expand Down
2 changes: 1 addition & 1 deletion test/clangsa/MissingRoots.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void stack_rooted(jl_value_t *lb JL_MAYBE_UNROOTED, jl_value_t *ub JL_MAYBE_UNRO
JL_DLLEXPORT jl_value_t *jl_totally_used_function(int i)
{
jl_value_t *v = jl_box_int32(i); // expected-note{{Started tracking value here}}
jl_safepoint(); // expected-note{{Value may have been GCed here}}
jl_gc_safepoint(); // expected-note{{Value may have been GCed here}}
return v; // expected-warning{{Return value may have been GCed}}
// expected-note@-1{{Return value may have been GCed}}
}

0 comments on commit b61062b

Please sign in to comment.