[llvm-commits] llvm-convert.cpp compile fix
Duncan Sands
baldrick at free.fr
Mon Jan 15 07:03:05 PST 2007
Something like this is needed to get current llvm-gcc4 to compile.
Index: gcc/llvm-convert.cpp
===================================================================
--- gcc/llvm-convert.cpp (revision 248)
+++ gcc/llvm-convert.cpp (working copy)
@@ -221,7 +221,7 @@
// If this is just a mismatch between integer types, this is due
// to K&R prototypes, where the forward proto defines the arg as int
// and the actual impls is a short or char.
- assert(ArgVal->getType() == Type::Int32Ty && LLVMTy->isIntegral() &&
+ assert(ArgVal->getType() == Type::Int32Ty && LLVMTy->isInteger() &&
"Lowerings don't match?");
ArgVal = new TruncInst(ArgVal, LLVMTy, NameStack.back(), CurBB);
}
More information about the llvm-commits
mailing list