From 014b88acb19f0e0fa8569009c5dd4db1b9c1401f Mon Sep 17 00:00:00 2001 From: Guy Repta <50716988+gtrepta@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:42:55 -0600 Subject: [PATCH] Don't make static tokens constant --- lib/codegen/CreateStaticTerm.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/codegen/CreateStaticTerm.cpp b/lib/codegen/CreateStaticTerm.cpp index 9234296f2..029b32a23 100644 --- a/lib/codegen/CreateStaticTerm.cpp +++ b/lib/codegen/CreateStaticTerm.cpp @@ -324,7 +324,6 @@ create_static_term::create_token(value_type sort, std::string contents) { llvm::Constant *global = module_->getOrInsertGlobal("token_" + escape(contents), string_type); auto *global_var = llvm::dyn_cast(global); - global_var->setConstant(true); if (!global_var->hasInitializer()) { llvm::StructType *block_header_type = llvm::StructType::getTypeByName( module_->getContext(), blockheader_struct);