diff --git a/src/passes/SetGlobals.cpp b/src/passes/SetGlobals.cpp index 3bcbb3d31c9..5e24184fa55 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;