aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2011-03-05 18:21:20 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2011-03-05 18:21:20 +0000
commit6784304db526cde59046d613c4175ce2caf93e44 (patch)
tree1baa1ef071f1fd1fa37958b1453aa7bac6423355 /lib/Parse/ParseStmt.cpp
parentc494f77363f057dd8619fec4e885c4f80e3d1b66 (diff)
Fixed LabelDecl source range and cleaned creation code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r--lib/Parse/ParseStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp
index 2d9758333f..d1376accca 100644
--- a/lib/Parse/ParseStmt.cpp
+++ b/lib/Parse/ParseStmt.cpp
@@ -493,7 +493,7 @@ StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) {
IdentifierInfo *II = Tok.getIdentifierInfo();
SourceLocation IdLoc = ConsumeToken();
- DeclsInGroup.push_back(Actions.LookupOrCreateLabel(II, IdLoc, true));
+ DeclsInGroup.push_back(Actions.LookupOrCreateLabel(II, IdLoc, LabelLoc));
if (!Tok.is(tok::comma))
break;