]> granicus.if.org Git - clang/commit
Make sure to cast the VLA size of array to the type of size_t. Fixes PR3442.
authorAnders Carlsson <andersca@mac.com>
Fri, 30 Jan 2009 16:41:04 +0000 (16:41 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 30 Jan 2009 16:41:04 +0000 (16:41 +0000)
commit6cd586d2668653501ecd73d53e81cbc76db3a18c
tree8fbc90effefdd9a35817dccb2809d959f97b06d8
parentf64ef62699ae470437d3689888cb284fd31e9bd9
Make sure to cast the VLA size of array to the type of size_t. Fixes PR3442.

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