]> granicus.if.org Git - clang/commit
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)
commit1ea622e6b8c6b4f6ac8a60409dbe3d6c4e8c7b06
tree8e36f7d40df64d11cc8dc5e779cc86777fbca50b
parent502d79bca4a9ff7f13b744cc49eed3302f9d201c
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248905 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
include/clang/Sema/Template.h
lib/AST/ExprCXX.cpp
lib/Sema/SemaTemplateInstantiate.cpp