[cfe-commits] r59420 - /cfe/trunk/lib/AST/ExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Sun Nov 16 15:41:00 PST 2008


On Sun, Nov 16, 2008 at 3:39 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> For the incorrect output, try something like the following with "clang
> -emit-llvm -triple x86_64-unknown-linux-gnu":
> long y = &((int*)0)[0xFFFFFFFFu] - ((int*)0);

> Try something like the following with "clang -emit-llvm -triple
> x86_64-unknown-linux-gnu":
>
> long y = ((int*)0) - &((int*)0)[1];

Correction: try the preceding with a build with USE_TRY_EVALUATE defined.

-Eli



More information about the cfe-commits mailing list