diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 20:05:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 20:05:34 +0000 |
commit | 4f2aac33fe0e181c1c96bc9b502343935a794b5e (patch) | |
tree | 57f9feb5829def4392af849ce71d39615b0cdae2 /lib/Sema/SemaDecl.cpp | |
parent | ea29a3a0d6948c4a51a261d19ec1a585d2a9c779 (diff) |
fix two error paths out of ParseBlockLiteralExpression to
call ActOnBlockError so that CurBlock gets popped. This
fixes a crash on test/block-syntax-error.c when this new
assertion is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 4df6feec9f..b580b01bc4 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -3155,7 +3155,7 @@ Sema::DeclPtrTy Sema::ActOnFinishFunctionBody(DeclPtrTy D, StmtArg BodyArg) { PopDeclContext(); // Verify and clean out per-function state. - //assert(&getLabelMap() == &FunctionLabelMap && "Didn't pop block right?"); + assert(&getLabelMap() == &FunctionLabelMap && "Didn't pop block right?"); bool HaveLabels = !FunctionLabelMap.empty(); // Check goto/label use. |