This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix formatting of OpenMP error message.
ClosedPublic

Authored by tianqing on Dec 25 2019, 6:36 PM.

Details

Summary

getListOfPossibleValues() formatted incorrectly when there is only one value, emitting something like expected 'conditional' or in OpenMP clause 'lastprivate'.

Diff Detail

Event Timeline

tianqing created this revision.Dec 25 2019, 6:36 PM
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Dec 25 2019, 9:45 PM

I would have just stripped the last chars of Out.str() but if this passes all the tests I'm fine with it.

LGTM.

This revision is now accepted and ready to land.Dec 25 2019, 9:45 PM

Could someone help commit this patch? Thanks.

This revision was automatically updated to reflect the committed changes.