[cfe-commits] r67969 - /cfe/trunk/lib/CodeGen/CGCall.cpp

Daniel Dunbar daniel at zuster.org
Sun Mar 29 15:19:14 PDT 2009


Good point; ignore my ramblings.
 - Daniel

On Sun, Mar 29, 2009 at 1:16 PM, Eli Friedman <eli.friedman at gmail.com>wrote:

> On Sun, Mar 29, 2009 at 11:38 AM, Daniel Dunbar <daniel at zuster.org> wrote:
> > Better as:
> > --
> > ElemTy = (Context.getTypeAlign(Ty) > 32) ? llvm::Type::Int64Ty :
> > llvm::Type::Int32Ty;
> > SizeRegs = llvm::RoundUpToAlignment(Context.getTypeSize(Ty),
> >                Context.getTypeSize(ElemTy));
>
> Calling Context.getTypeSize() on an llvm::Type* isn't legal...
>
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090329/94443bd3/attachment.html>


More information about the cfe-commits mailing list