aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-29 01:59:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-29 01:59:17 +0000
commit1d2154c3590d21345d02e28f2916f7492c82bf54 (patch)
treeb8b205711ae13be5bd65384213f62b76a6a195dd
parent930b71a4a7dedf70a73e5fd875bae7df452b80a9 (diff)
BlockScopeInfo::hasPrototype was uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77421 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 1590e2218e..473ecef8d0 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -5357,6 +5357,7 @@ void Sema::ActOnBlockStart(SourceLocation CaretLoc, Scope *BlockScope) {
BSI->ReturnType = QualType();
BSI->TheScope = BlockScope;
BSI->hasBlockDeclRefExprs = false;
+ BSI->hasPrototype = false;
BSI->SavedFunctionNeedsScopeChecking = CurFunctionNeedsScopeChecking;
CurFunctionNeedsScopeChecking = false;