diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-05 19:03:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-05 19:03:35 +0000 |
commit | f9bd4ecea23d0198f46996dce271a754f2a2ff64 (patch) | |
tree | c5671d65acb930bd3c9eedf891494c21dd60d154 /clang/lib/AST/ASTContext.cpp | |
parent | d460cb43564ea511b8356f4f2bc817918206346e (diff) | |
download | bcm5719-llvm-f9bd4ecea23d0198f46996dce271a754f2a2ff64.tar.gz bcm5719-llvm-f9bd4ecea23d0198f46996dce271a754f2a2ff64.zip |
Fix canonical type construction for function types with the noreturn
attribute. Fixes PR4865.
llvm-svn: 78224
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index ad46bcdca7e..404593452c2 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1616,7 +1616,8 @@ QualType ASTContext::getFunctionType(QualType ResultTy,const QualType *ArgArray, Canonical = getFunctionType(getCanonicalType(ResultTy), CanonicalArgs.data(), NumArgs, - isVariadic, TypeQuals, NoReturn); + isVariadic, TypeQuals, false, + false, 0, 0, NoReturn); // Get the new insert position for the node we care about. FunctionProtoType *NewIP = |