Skip to content

Commit

Permalink
SetGlobals: Fix segfault on invalid input (#6321)
Browse files Browse the repository at this point in the history
  • Loading branch information
khitrin authored Feb 20, 2024
1 parent 2b512ce commit a9f01c0
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 a9f01c0

Please sign in to comment.