diff --git a/lib/Pass/Pass.cpp b/lib/Pass/Pass.cpp index 1792d99fb..3b793dd77 100644 --- a/lib/Pass/Pass.cpp +++ b/lib/Pass/Pass.cpp @@ -419,9 +419,7 @@ struct SouperPass : public ModulePass { Value *NewVal = getValue(Cand.Mapping.RHS, I, EBC, DT, ReplacedValues, Builder, F->getParent()); if (!NewVal) { - if (DebugSouperPass) - errs() << "\"\n; replacement failed\n"; - continue; + report_fatal_error("Unable to find corresponding LLVM IR"); } ReplacedValues[Cand.Mapping.LHS] = NewVal;