[cfe-commits] r59946 - in /cfe/trunk: lib/AST/Expr.cpp test/CodeGen/staticinit.c

Anders Carlsson andersca at mac.com
Mon Nov 24 19:55:20 PST 2008


24 nov 2008 kl. 13.27 skrev Eli Friedman:

> On Sun, Nov 23, 2008 at 9:24 PM, Anders Carlsson <andersca at mac.com>  
> wrote:
>> +  case StringLiteralClass:
>> +  case ObjCStringLiteralClass:
>> +    return true;
>
> We shouldn't need a special-case here, I don't think... what's  
> motivating this?

Just my laziness :) Since string literals are arrays, Expr::Evaluate  
doesn't work on them yet - Do you think adding an ArrayExprEvaluator  
is the correct way to go?

Anders

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081124/acf1c494/attachment.bin>


More information about the cfe-commits mailing list