Skip to content

Commit

Permalink
Don't make static tokens constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrepta committed Nov 26, 2024
1 parent 0f72ec9 commit 014b88a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/codegen/CreateStaticTerm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<llvm::GlobalVariable>(global);
global_var->setConstant(true);
if (!global_var->hasInitializer()) {
llvm::StructType *block_header_type = llvm::StructType::getTypeByName(
module_->getContext(), blockheader_struct);
Expand Down

0 comments on commit 014b88a

Please sign in to comment.