Author: baldrick
Date: Mon Sep 10 02:38:55 2007
New Revision: 41793

URL: http://llvm.org/viewvc/llvm-project?rev=41793&view=rev
Log:
Forward port of 41791.  Note that the original problem
was not visible with 4.2 because it has special handling
for the case of an empty filter, however the underlying
problem still existed there.

Unbreak 64-bit build.

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=41793&r1=41792&r2=41793&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Sep 10 02:38:55 2007
@@ -1914,7 +1914,7 @@
       Value *Select = Builder.CreateLoad(ExceptionSelectorValue, "tmp");
 
       // Compare with the filter action value.
-      Value *Zero = ConstantInt::get(Type::Int32Ty, 0);
+      Value *Zero = ConstantInt::get(Select->getType(), 0);
       Value *Compare = Builder.CreateICmpSLT(Select, Zero, "tmp");
 
       // Branch on the compare.


_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to