[llvm-commits] [llvm-gcc-4.2] r45019 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Thu Dec 13 17:06:35 PST 2007
Author: johannes
Date: Thu Dec 13 19:06:35 2007
New Revision: 45019
URL: http://llvm.org/viewvc/llvm-project?rev=45019&view=rev
Log:
Fix broken IR gen for complex int != .
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=45019&r1=45018&r2=45019&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Thu Dec 13 19:06:35 2007
@@ -4753,8 +4753,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