[cfe-commits] r123007 - /cfe/trunk/lib/Sema/TreeTransform.h
Douglas Gregor
dgregor at apple.com
Fri Jan 7 11:27:47 PST 2011
Author: dgregor
Date: Fri Jan 7 13:27:47 2011
New Revision: 123007
URL: http://llvm.org/viewvc/llvm-project?rev=123007&view=rev
Log:
Fix a valgrind error when transforming function prototypes with
function parameter pack expansions.
Modified:
cfe/trunk/lib/Sema/TreeTransform.h
Modified: cfe/trunk/lib/Sema/TreeTransform.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=123007&r1=123006&r2=123007&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/TreeTransform.h (original)
+++ cfe/trunk/lib/Sema/TreeTransform.h Fri Jan 7 13:27:47 2011
@@ -3568,6 +3568,7 @@
QualType Result = TL.getType();
if (getDerived().AlwaysRebuild() ||
ResultType != T->getResultType() ||
+ T->getNumArgs() != ParamTypes.size() ||
!std::equal(T->arg_type_begin(), T->arg_type_end(), ParamTypes.begin())) {
Result = getDerived().RebuildFunctionProtoType(ResultType,
ParamTypes.data(),
More information about the cfe-commits
mailing list