[cfe-commits] r69004 - in /cfe/trunk: lib/AST/ASTContext.cpp test/CodeGen/function-decay.m
steve naroff
snaroff at apple.com
Mon Apr 13 17:19:59 PDT 2009
On Apr 13, 2009, at 8:12 PM, Anders Carlsson wrote:
>
> On Apr 13, 2009, at 5:03 PM, Steve Naroff wrote:
>
>> - if (!dyn_cast<ConstantArrayType>(AT))
>> - PType = PVDecl->getType();
>> + dyn_cast<ArrayType>(PType->getCanonicalTypeInternal())) {
>> + // Use array's original type only if it has known number of
>> + // elements.
>> + if (!dyn_cast<ConstantArrayType>(AT))
>> + PType = PVDecl->getType();
>
> Not sure if you wrote the original code or not, but
>
>> if (!dyn_cast<ConstantArrayType>(AT))
>
> should be
>
> if (!isa<ConstantArrayType>(AT))
svn says I'm to blame:-)
I'll fix it now.
Thanks,
snaroff
>
>
> Anders
More information about the cfe-commits
mailing list