Restore a call to rememberInstruction which was accidentally dropped
authorDan Gohman <gohman@apple.com>
Sat, 19 Jun 2010 22:50:35 +0000 (22:50 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 19 Jun 2010 22:50:35 +0000 (22:50 +0000)
in refactoring.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolutionExpander.cpp

index c47b33900e5ebb424f710a6ca4942799c5113ba3..df562fa134446d42891e045f0c854e25dcadb3d1 100644 (file)
@@ -46,6 +46,7 @@ Value *SCEVExpander::ReuseOrCreateCast(Value *V, const Type *Ty,
             rememberInstruction(NewCI);
             return NewCI;
           }
+          rememberInstruction(CI);
           return CI;
         }