]> granicus.if.org Git - clang/commit
PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 20 Apr 2009 03:21:44 +0000 (03:21 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 20 Apr 2009 03:21:44 +0000 (03:21 +0000)
commit8f426fa9fca022201fc0944d6c1cb2cf9918db7d
tree19dd83209223e634e5dcc04fce47035c45e85d16
parent0a095fb9f9962e3ea668b046c314555478fd9aa6
PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type.

Adapted from patch by Tim Northover.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/variable-array.c [new file with mode: 0644]