[cfe-commits] r142179 - in /cfe/trunk: lib/Sema/SemaExpr.cpp test/Sema/offsetof.c

John McCall rjmccall at apple.com
Mon Oct 17 10:12:42 PDT 2011


On Oct 16, 2011, at 10:48 PM, Richard Smith wrote:
> Author: rsmith
> Date: Mon Oct 17 00:48:07 2011
> New Revision: 142179
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=142179&view=rev
> Log:
> Perform an lvalue-to-rvalue conversion on an array index in a __builtin_offsetof expression.

For correctness with placeholders, we should do these conversions before type-checking.

John.



More information about the cfe-commits mailing list