Skip to content

Commit

Permalink
Crashes with report when call getValue() on operands returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyang92 committed Oct 2, 2018
1 parent 6c5baca commit 8994701
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Pass/Pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8994701

Please sign in to comment.