[llvm-commits] [llvm] r50996 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Nate Begeman
natebegeman at mac.com
Mon May 12 13:16:56 PDT 2008
Author: sampo
Date: Mon May 12 15:16:55 2008
New Revision: 50996
URL: http://llvm.org/viewvc/llvm-project?rev=50996&view=rev
Log:
Pointer comparisons should use icmp, not vicmp
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=50996&r1=50995&r2=50996&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Mon May 12 15:16:55 2008
@@ -818,7 +818,7 @@
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);
More information about the llvm-commits
mailing list