Fix FunctionParmPackExpr::Create() to take a ParmVarDecl* array.
authorJames Y Knight <jyknight@google.com>
Wed, 30 Sep 2015 14:04:23 +0000 (14:04 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 30 Sep 2015 14:04:23 +0000 (14:04 +0000)
commit48fefa3724c0d85b49dc78afd9b7c29ab560d190
treeae1f9cdaccc2ec9b81bbca76bbcd0231132a3e89
parent867a93824629589b07c9634897d7726942d58c50
Fix FunctionParmPackExpr::Create() to take a ParmVarDecl* array.

FunctionParmPackExpr actually stores an array of ParmVarDecl* (and
accessors return that). But, the FunctionParmPackExpr::Create()
constructor accepted an array of Decl *s instead.

It was easy for this mismatch to occur without any obvious sign of
something wrong, since both the store and the access used independent
'reinterpet_cast<XX>(this+1)' calls.

llvm-svn: 248905
clang/include/clang/AST/ExprCXX.h
clang/include/clang/Sema/Template.h
clang/lib/AST/ExprCXX.cpp
clang/lib/Sema/SemaTemplateInstantiate.cpp