diff options
author | John McCall <rjmccall@apple.com> | 2010-06-04 19:02:56 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-06-04 19:02:56 +0000 |
commit | c71a4915ca216847599d03cab4ed1c5086b0eb43 (patch) | |
tree | 73df13ac3d0a22f4f40a14b9aaf95092a5baf1fc /lib/Sema/SemaChecking.cpp | |
parent | 6e90047520c8b4d6daa110bdbdaf15041016bd7c (diff) |
Preserve more information from a block's original function declarator, if one
was given. Remove some unnecessary accounting from BlockScopeInfo. Handle
typedef'ed function types until such time as we decide not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 4f3f41b715..d47f2ce8ed 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -511,7 +511,7 @@ bool Sema::SemaBuiltinVAStart(CallExpr *TheCall) { BlockScopeInfo *CurBlock = getCurBlock(); bool isVariadic; if (CurBlock) - isVariadic = CurBlock->isVariadic; + isVariadic = CurBlock->TheDecl->isVariadic(); else if (FunctionDecl *FD = getCurFunctionDecl()) isVariadic = FD->isVariadic(); else |