diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-09-06 17:11:52 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-09-06 17:11:52 +0000 |
| commit | 73c18e0362922ac6785ca8d2526fa9784a0f0c93 (patch) | |
| tree | 8a0a15131c893972e3b4d04884dd14951641d6a9 /clang/Sema/SemaStmt.cpp | |
| parent | a6d5d2a6a0ee80b00985e9232a89d6e537cceff8 (diff) | |
| download | bcm5719-llvm-73c18e0362922ac6785ca8d2526fa9784a0f0c93.tar.gz bcm5719-llvm-73c18e0362922ac6785ca8d2526fa9784a0f0c93.zip | |
Added LabelLoc to GotoStmt to record the source location of the label token
in the actual GotoStmt.
Fixed bug where GotoStmt::getSourceRange incorrectly used the target LabelStmt
to compute its extent.
llvm-svn: 41745
Diffstat (limited to 'clang/Sema/SemaStmt.cpp')
| -rw-r--r-- | clang/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp index 2924370df3a..9cca2c24f02 100644 --- a/clang/Sema/SemaStmt.cpp +++ b/clang/Sema/SemaStmt.cpp @@ -510,7 +510,7 @@ Sema::ParseGotoStmt(SourceLocation GotoLoc, SourceLocation LabelLoc, if (LabelDecl == 0) LabelDecl = new LabelStmt(LabelLoc, LabelII, 0); - return new GotoStmt(LabelDecl, GotoLoc); + return new GotoStmt(LabelDecl, GotoLoc, LabelLoc); } Action::StmtResult |

