summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit1fd843eee7b6a35297b2f1c3cb6017ef341a2413 (patch)
treef661ea0ad33df31b8e74f1b948c6366b35c08266 /llvm/lib
parent25c0510690ddd354a550096abe7370bd8079defb (diff)
downloadbcm5719-llvm-1fd843eee7b6a35297b2f1c3cb6017ef341a2413.tar.gz
bcm5719-llvm-1fd843eee7b6a35297b2f1c3cb6017ef341a2413.zip
Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..."
llvm-svn: 175273
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2e7bd922a27..bad46b4dab3 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud