diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-26 16:43:14 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-26 16:43:14 +0000 |
commit | 7fb5e4888221cd36652d078c6b171ac55e7f406d (patch) | |
tree | 90d8bb74030debd15c7b4920f686c79fc0d6d30a /lib/AST/Builtins.cpp | |
parent | 197fa58ab40e3fee2137715e96d9bb1c59340837 (diff) |
Don't give a default argument to ASTContext::getFunctionType for the TypeQuals parameter, it causes subtle bugs where TypeQuals, while necessary, are omitted from the call.
-Remove the default argument.
-Update all call sites of ASTContext::getFunctionType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Builtins.cpp')
-rw-r--r-- | lib/AST/Builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Builtins.cpp b/lib/AST/Builtins.cpp index 1823ee6055..a721c6ea8c 100644 --- a/lib/AST/Builtins.cpp +++ b/lib/AST/Builtins.cpp @@ -203,5 +203,5 @@ QualType Builtin::Context::GetBuiltinType(unsigned id, if (ArgTypes.size() == 0 && TypeStr[0] == '.') return Context.getFunctionTypeNoProto(ResType); return Context.getFunctionType(ResType, &ArgTypes[0], ArgTypes.size(), - TypeStr[0] == '.'); + TypeStr[0] == '.', 0); } |