summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorSam Panzer <espanz@gmail.com>2012-08-16 21:47:25 +0000
committerSam Panzer <espanz@gmail.com>2012-08-16 21:47:25 +0000
commit2c4ca0fa7d1391396089e5f3ef6ac547dd304fd1 (patch)
tree725b7b60e10513a09bcb39d9c5f6d328f1544dbd /clang/lib/Parse/ParseStmt.cpp
parentadc43c998c9e6761ce2b4f30c197de3257ff30e8 (diff)
downloadbcm5719-llvm-2c4ca0fa7d1391396089e5f3ef6ac547dd304fd1.tar.gz
bcm5719-llvm-2c4ca0fa7d1391396089e5f3ef6ac547dd304fd1.zip
Removed unused LParenLoc parameter to ActOnCXXForRangeStmt
llvm-svn: 162048
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index a934847c015..df9b996aa31 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1495,8 +1495,7 @@ StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) {
StmtResult ForEachStmt;
if (ForRange) {
- ForRangeStmt = Actions.ActOnCXXForRangeStmt(ForLoc, T.getOpenLocation(),
- FirstPart.take(),
+ ForRangeStmt = Actions.ActOnCXXForRangeStmt(ForLoc, FirstPart.take(),
ForRangeInit.ColonLoc,
ForRangeInit.RangeExpr.get(),
T.getCloseLocation());
@@ -1505,7 +1504,7 @@ StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) {
// Similarly, we need to do the semantic analysis for a for-range
// statement immediately in order to close over temporaries correctly.
} else if (ForEach) {
- ForEachStmt = Actions.ActOnObjCForCollectionStmt(ForLoc, T.getOpenLocation(),
+ ForEachStmt = Actions.ActOnObjCForCollectionStmt(ForLoc,
FirstPart.take(),
Collection.take(),
T.getCloseLocation());
OpenPOWER on IntegriCloud