[cfe-commits] r158117 - in /cfe/trunk: lib/CodeGen/CGExprScalar.cpp test/CodeGen/vla.c

John McCall rjmccall at apple.com
Wed Jun 6 16:13:08 PDT 2012


On Jun 6, 2012, at 3:58 PM, Fariborz Jahanian wrote:
> Author: fjahanian
> Date: Wed Jun  6 17:58:50 2012
> New Revision: 158117
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=158117&view=rev
> Log:
> When doing arithmatic on vla pointer, make sure
> to emit vla size to prevent an irgen crash.
> // rdar://11485774

This is wrong;  the VLA bounds should already have been emitted by
this point. The  bug is that EmitVariablyModifiedType is apparently not
getting called as part of emitting the compound literal.

John.



More information about the cfe-commits mailing list