Skip to content

Commit a9f01c0

Browse files
authored
SetGlobals: Fix segfault on invalid input (#6321)
1 parent 2b512ce commit a9f01c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/passes/SetGlobals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct SetGlobals : public Pass {
4141
auto value = nameAndValue[1];
4242
auto* glob = module->getGlobalOrNull(name);
4343
if (!glob) {
44-
std::cerr << "warning: could not find global: " << name << '\n';
44+
Fatal() << "Could not find global: " << name;
4545
}
4646
// Parse the input.
4747
Literal lit;

0 commit comments

Comments
 (0)