summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pass.h b/src/pass.h
index 720e5c992..3917c8908 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -133,8 +133,9 @@ struct PassRunner {
void add(std::string passName) {
auto pass = PassRegistry::get()->createPass(passName);
- if (!pass)
+ if (!pass) {
Fatal() << "Could not find pass: " << passName << "\n";
+ }
doAdd(pass);
}