When evaluating variably modified types for function parameters, dig out the
authorEli Friedman <eli.friedman@gmail.com>
Wed, 14 Nov 2012 22:09:59 +0000 (22:09 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 14 Nov 2012 22:09:59 +0000 (22:09 +0000)
commit1f576831c904ea460e52bb86733fa17b1aeb6a50
tree6a9ff7e88b1c38b132bd679261b0b7d606304289
parent950d8703b1e79df72b8acda09421d1e0c9f262b8
When evaluating variably modified types for function parameters, dig out the
type as written from the ParmVarDecl; it's unclear whether the standard
(C99 6.9.1p10) requires this, but we're following the precedent set by gcc,
and hopefully nobody will ever ask about this again.

PR9559 / <rdar://problem/12621983>.

llvm-svn: 167985
clang/lib/CodeGen/CodeGenFunction.cpp
clang/test/CodeGen/vla.c