Skip to content

Commit

Permalink
[SetGlobals] fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
khitrin committed Feb 20, 2024
1 parent feb8f24 commit 34f6dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passes/SetGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct SetGlobals : public Pass {
auto value = nameAndValue[1];
auto* glob = module->getGlobalOrNull(name);
if (!glob) {
std::cerr << "warning: could not find global: " << name << '\n';
Fatal() << "Could not find global: " << name;
}
// Parse the input.
Literal lit;
Expand Down

0 comments on commit 34f6dce

Please sign in to comment.