[llvm-commits] [dragonegg] r135472 - /dragonegg/trunk/src/Convert.cpp

Jay Foad jay.foad at gmail.com
Tue Jul 19 04:29:13 PDT 2011


> Did you compile test these changes?

Yes. I got no errors in Convert.cpp, compiling with GCC 4.5.2 on
Ubuntu Natty x86_64.

> I had the to use the following to make
> the calls with a single element work:
>
> -  Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Id, &Ty,
> 1),
> +  Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Id,
> + makeArrayRef(&Ty, 1)),

That's ugly. Why doesn't the implicit conversion from Type * to
ArrayRef<Type *> work?

Jay.




More information about the llvm-commits mailing list