summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2010-01-19 23:08:01 +0000
committerMike Stump <mrs@apple.com>2010-01-19 23:08:01 +0000
commit314825bc8ac6ef3245ca4c1b3aee89f0da2632f6 (patch)
tree7c39f72d4602cc590c50eb3547710043026796e7 /clang/lib/Sema/SemaStmt.cpp
parent99469702a359b723352d251ce994bfaeaa15e306 (diff)
downloadbcm5719-llvm-314825bc8ac6ef3245ca4c1b3aee89f0da2632f6.tar.gz
bcm5719-llvm-314825bc8ac6ef3245ca4c1b3aee89f0da2632f6.zip
Implement goto inside of blocks.
llvm-svn: 93945
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 7855a7f6093..f0bbdfe7624 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/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];
OpenPOWER on IntegriCloud