summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-12 20:16:55 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-12 20:16:55 +0000
commit17c5434a16515b3362988a3e3af46ac3fd2c2fe8 (patch)
treeb9ea98924ec09eb7299ff8996289aac4bd9de5f3 /llvm/lib/Bitcode
parentf79286025587cb4f4b08570f274849f2721a6033 (diff)
downloadbcm5719-llvm-17c5434a16515b3362988a3e3af46ac3fd2c2fe8.tar.gz
bcm5719-llvm-17c5434a16515b3362988a3e3af46ac3fd2c2fe8.zip
Pointer comparisons should use icmp, not vicmp
llvm-svn: 50996
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index d9936ef825a..8b333bcba28 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -818,7 +818,7 @@ bool BitcodeReader::ParseConstants() {
if (OpTy->isFloatingPoint())
V = ConstantExpr::getFCmp(Record[3], Op0, Op1);
- else if (OpTy->isInteger())
+ else if (OpTy->isInteger() || isa<PointerType>(OpTy))
V = ConstantExpr::getICmp(Record[3], Op0, Op1);
else if (OpTy->isFPOrFPVector())
V = ConstantExpr::getVFCmp(Record[3], Op0, Op1);
OpenPOWER on IntegriCloud