diff options
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 861dea2..d82ffe5 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -7452,8 +7452,8 @@ ScalarEvolution::getOperandsToCreate(Value *V, SmallVectorImpl<Value *> &Ops) { } // CreateSCEV calls getNoWrapFlagsFromUB, which under certain conditions // requires a SCEV for the LHS. - if (NewBO->Op && (NewBO->IsNSW || NewBO->IsNUW)) { - auto *I = dyn_cast<Instruction>(NewBO->Op); + if (BO->Op && (BO->IsNSW || BO->IsNUW)) { + auto *I = dyn_cast<Instruction>(BO->Op); if (I && programUndefinedIfPoison(I)) { Ops.push_back(BO->LHS); break; |