diff options
author | Mike Stump <mrs@apple.com> | 2010-01-19 23:08:01 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2010-01-19 23:08:01 +0000 |
commit | a3899eb5e30426b00b80232a15ae557dd4caa5b8 (patch) | |
tree | df15fc46b280028f58ee7dc671bc27c0392c120f /lib/Sema/SemaStmt.cpp | |
parent | b2aaf51ed73a4774322a39a0dd59d0fe7e3258c0 (diff) |
Implement goto inside of blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 7855a7f609..f0bbdfe762 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -879,10 +879,6 @@ Sema::ActOnObjCForCollectionStmt(SourceLocation ForLoc, Action::OwningStmtResult Sema::ActOnGotoStmt(SourceLocation GotoLoc, SourceLocation LabelLoc, IdentifierInfo *LabelII) { - // If we are in a block, reject all gotos for now. - if (CurBlock) - return StmtError(Diag(GotoLoc, diag::err_goto_in_block)); - // Look up the record for this label identifier. LabelStmt *&LabelDecl = getLabelMap()[LabelII]; |