summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/passes/SetGlobals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/SetGlobals.cpp b/src/passes/SetGlobals.cpp
index 3bcbb3d31..5e24184fa 100644
--- a/src/passes/SetGlobals.cpp
+++ b/src/passes/SetGlobals.cpp
@@ -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;