Skip to content

Commit

Permalink
make global_var_address auto* rather than auto
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmeker committed Oct 25, 2024
1 parent 93ac37c commit fd50ff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/codegen/CreateTerm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,9 @@ llvm::Value *create_term::disable_gc() {
global_var->setThreadLocal(true);
#ifdef __MACH__
llvm::IRBuilder b(current_block_);
auto global_var_address = b.CreateThreadLocalAddress(global_var);
auto *global_var_address = b.CreateThreadLocalAddress(global_var);
#else
auto global_var_address = global_var;
auto *global_var_address = global_var;
#endif
auto *old_val = new llvm::LoadInst(
llvm::Type::getInt1Ty(ctx_), global_var_address, "was_enabled",
Expand All @@ -804,9 +804,9 @@ void create_term::enable_gc(llvm::Value *was_enabled) {
global_var->setThreadLocal(true);
#ifdef __MACH__
llvm::IRBuilder b(current_block_);
auto global_var_address = b.CreateThreadLocalAddress(global_var);
auto *global_var_address = b.CreateThreadLocalAddress(global_var);
#else
auto global_var_address = global_var;
auto *global_var_address = global_var;
#endif
new llvm::StoreInst(was_enabled, global_var_address, current_block_);
}
Expand Down

0 comments on commit fd50ff0

Please sign in to comment.