Fix a valgrind error noticed by Benoit Boissinot
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40113 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Type.cpp b/AST/Type.cpp
index e6aa6c8..4e415e4 100644
--- a/AST/Type.cpp
+++ b/AST/Type.cpp
@@ -424,7 +424,7 @@
}
void FunctionTypeProto::Profile(llvm::FoldingSetNodeID &ID, QualType Result,
- QualType* ArgTys,
+ arg_type_iterator ArgTys,
unsigned NumArgs, bool isVariadic) {
ID.AddPointer(Result.getAsOpaquePtr());
for (unsigned i = 0; i != NumArgs; ++i)
@@ -433,7 +433,7 @@
}
void FunctionTypeProto::Profile(llvm::FoldingSetNodeID &ID) {
- Profile(ID, getResultType(), ArgInfo, NumArgs, isVariadic());
+ Profile(ID, getResultType(), arg_type_begin(), NumArgs, isVariadic());
}
/// LookThroughTypedefs - Return the ultimate type this typedef corresponds to