Skip to content

Commit 2ce56c2

Browse files
author
Shashwathi N
committed
Fixed the error
1 parent 98eebb6 commit 2ce56c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,10 +4711,8 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind,
47114711
if (Tail.isUsable()) {
47124712
Data.IteratorExpr = Tail.get();
47134713
TPA.Commit();
4714-
}
4715-
else
4716-
TPA.revert();
4717-
}
4714+
} else
4715+
TPA.Revert();
47184716
} else {
47194717
ConsumeToken();
47204718
if (Modifier == OMPC_MOTION_MODIFIER_mapper) {

0 commit comments

Comments
 (0)