diff --git a/llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp b/llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp index 9f358e1d60a3..854fda4aa830 100644 --- a/llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp +++ b/llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp @@ -59,7 +59,8 @@ Value *SSAUpdaterBulk::computeValueAt(BasicBlock *BB, RewriteInfo &R, if (!R.Defines.count(BB)) { if (DT->isReachableFromEntry(BB) && PredCache.get(BB).size()) { BasicBlock *IDom = DT->getNode(BB)->getIDom()->getBlock(); - R.Defines[BB] = computeValueAt(IDom, R, DT); + Value *V = computeValueAt(IDom, R, DT); + R.Defines[BB] = V; } else R.Defines[BB] = UndefValue::get(R.Ty); }