This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] remove redundant ColonExpected flag in ParseOpenMP.cpp - (NFC)
ClosedPublic

Authored by saghir on Nov 27 2018, 10:53 AM.

Details

Summary

In ParseOpenMP.cpp:

bool ColonExpected = false;
...
...
...
else if (ColonExpected)
      Diag(Tok, diag::warn_pragma_expected_colon) << "map type";

The flag ColonExpected is not changed after being initialized to false at declaration. Hence, the code within the else if is never executed.

We should remove all instances of this flag.

Diff Detail

Repository
rL LLVM

Event Timeline

saghir created this revision.Nov 27 2018, 10:53 AM
saghir edited the summary of this revision. (Show Details)Nov 27 2018, 10:54 AM
saghir edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Nov 27 2018, 10:54 AM
This revision was automatically updated to reflect the committed changes.