[llvm-commits] [llvm-gcc-4.2] r86487 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Eric Christopher
echristo at apple.com
Sun Nov 8 15:01:35 PST 2009
Author: echristo
Date: Sun Nov 8 17:01:34 2009
New Revision: 86487
URL: http://llvm.org/viewvc/llvm-project?rev=86487&view=rev
Log:
Make sure we convert this to int32, just in case.
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=86487&r1=86486&r2=86487&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sun Nov 8 17:01:34 2009
@@ -4937,6 +4937,7 @@
// Manually coerce the arg to the correct pointer type.
Args[0] = Builder.CreateBitCast(Args[0], Type::getInt8PtrTy(Context));
+ Args[1] = Builder.CreateIntCast(Args[1], Type::getInt32Ty(Context), false);
Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
Intrinsic::objectsize,
More information about the llvm-commits
mailing list