]> granicus.if.org Git - clang/commitdiff
BlockScopeInfo::hasPrototype was uninitialized.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 01:59:17 +0000 (01:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 01:59:17 +0000 (01:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77421 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 1590e2218e4c3cdfe1f9b774f0c85859054f3bfe..473ecef8d0b874dced446ae6775ca94a5de8d1ea 100644 (file)
@@ -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;