aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/ASTContext.h2
-rw-r--r--include/clang/AST/Type.h2
-rw-r--r--lib/AST/ASTContext.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index ab745109cc..c5976be1b4 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -200,7 +200,7 @@ public:
/// getFunctionType - Return a normal function type with a typed argument
/// list. isVariadic indicates whether the argument list includes '...'.
- QualType getFunctionType(QualType ResultTy, QualType *ArgArray,
+ QualType getFunctionType(QualType ResultTy, const QualType *ArgArray,
unsigned NumArgs, bool isVariadic);
/// getTypeDeclType - Return the unique reference to the type for
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index 73cf7ca4db..f8c518acb9 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -905,7 +905,7 @@ protected:
/// 'int foo(int)' or 'int foo(void)'. 'void' is represented as having no
/// arguments, not as having a single void argument.
class FunctionTypeProto : public FunctionType, public llvm::FoldingSetNode {
- FunctionTypeProto(QualType Result, QualType *ArgArray, unsigned numArgs,
+ FunctionTypeProto(QualType Result, const QualType *ArgArray, unsigned numArgs,
bool isVariadic, QualType Canonical)
: FunctionType(FunctionProto, Result, isVariadic, Canonical),
NumArgs(numArgs) {
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 145a2e687e..b8b15628d7 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -816,7 +816,7 @@ QualType ASTContext::getFunctionTypeNoProto(QualType ResultTy) {
/// getFunctionType - Return a normal function type with a typed argument
/// list. isVariadic indicates whether the argument list includes '...'.
-QualType ASTContext::getFunctionType(QualType ResultTy, QualType *ArgArray,
+QualType ASTContext::getFunctionType(QualType ResultTy, const QualType *ArgArray,
unsigned NumArgs, bool isVariadic) {
// Unique functions, to guarantee there is only one function of a particular
// structure.