[llvm-commits] [llvm-gcc-4.0] r45021 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Thu Dec 13 17:11:55 PST 2007
Author: johannes
Date: Thu Dec 13 19:11:55 2007
New Revision: 45021
URL: http://llvm.org/viewvc/llvm-project?rev=45021&view=rev
Log:
Fix broken IR gen for complex int != .
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp?rev=45021&r1=45020&r2=45021&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp Thu Dec 13 19:11:55 2007
@@ -5211,8 +5211,8 @@
DSTr = Builder.CreateFCmpUNE(LHSr, RHSr, "tmpr");
DSTi = Builder.CreateFCmpUNE(LHSi, RHSi, "tmpi");
} else {
- DSTr = Builder.CreateICmpEQ(LHSr, RHSr, "tmpr");
- DSTi = Builder.CreateICmpEQ(LHSi, RHSi, "tmpi");
+ DSTr = Builder.CreateICmpNE(LHSr, RHSr, "tmpr");
+ DSTi = Builder.CreateICmpNE(LHSi, RHSi, "tmpi");
}
return Builder.CreateOr(DSTr, DSTi, "tmp");
}
More information about the llvm-commits
mailing list