This is already in the repository, but must not have hit the mirror yet.

-Chris

On Jan 15, 2007, at 7:03 AM, Duncan Sands wrote:

> 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);
>          }
> _______________________________________________
> llvm-commits mailing list
> llvm-commits@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to