aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2013-02-15 15:18:17 +0000
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2013-02-15 15:18:17 +0000
commitad079b274d6ecd3e36fb98099864baeeeb96ac82 (patch)
tree4b37e24e45b84fe749010c72c778c778a7f033ef
parent7c5c9b39c91d5f53284011c0ddbf458d553740da (diff)
Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175273 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstCombineCompares.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2e7bd922a2..bad46b4dab 100644
--- a/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -1347,7 +1347,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
NTy);
return new ICmpInst(ICI.getPredicate(),
Builder->CreateTrunc(LHSI->getOperand(0), NTy),
- ConstantExpr::getTrunc(NCI, NTy));
+ NCI);
}
break;