Bugfix to previous checkin
authorChris Lattner <sabre@nondot.org>
Tue, 16 Jul 2002 18:12:55 +0000 (18:12 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Jul 2002 18:12:55 +0000 (18:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/LevelRaise.cpp

index 2b9ff6d41b29cc53266d365ad721574e054490b0..54a2930fc0d474ba69642545b10e8efd0a3a783c 100644 (file)
@@ -227,7 +227,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
       // source type of the cast...
       //
       ConvertedTypes.clear();
-      ConvertedTypes[CI] = Src->getType();  // Make sure the cast _does_ change
+      ConvertedTypes[Src] = Src->getType();  // Make sure the source doesn't change type
       if (ValueConvertableToType(CI, Src->getType(), ConvertedTypes)) {
         PRINT_PEEPHOLE3("CAST-DEST-EXPR-CONV:in ", Src, CI, BB->getParent());