aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-16 18:12:55 +0000
committerChris Lattner <sabre@nondot.org>2002-07-16 18:12:55 +0000
commita66c7bfa512b499d89d161dca44bb6acbf162d95 (patch)
treea29573493a343f9ca2b815d21b34c809f1122df9 /lib/Transforms
parent0af0dff8a05cfd424707ef3b15bb6d1f60c4806d (diff)
downloadexternal_llvm-a66c7bfa512b499d89d161dca44bb6acbf162d95.zip
external_llvm-a66c7bfa512b499d89d161dca44bb6acbf162d95.tar.gz
external_llvm-a66c7bfa512b499d89d161dca44bb6acbf162d95.tar.bz2
Bugfix to previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/LevelRaise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 2b9ff6d..54a2930 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -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());