We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b55885 commit d4796fbCopy full SHA for d4796fb
lib/codegen/CreateStaticTerm.cpp
@@ -36,8 +36,8 @@ llvm::Constant *create_static_term::not_injection_case(
36
37
std::stringstream kore_string;
38
constructor->print(kore_string);
39
- llvm::Constant *block
40
- = module_->getOrInsertGlobal(kore_string.str(), block_type);
+ llvm::Constant *block = module_->getOrInsertGlobal(
+ "const_" + escape(kore_string.str()), block_type);
41
auto *global_var = llvm::dyn_cast<llvm::GlobalVariable>(block);
42
// this is technically not a constant because functions which return fresh constants
43
// will mutate a block in this circumstance. Probably best not to rely on this actually
0 commit comments