This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Ignore parens in atomic capture
ClosedPublic

Authored by davidsh on Jul 18 2016, 4:24 PM.

Details

Summary

Clang misdiagnoses atomic captures cases that contains parens.
ie.
int v, int *p;
#pragma omp atomic capture
{ v = (*p); (*p)++; }

Diff Detail

Repository
rL LLVM

Event Timeline

davidsh retitled this revision from to [OpenMP] Ignore parens in atomic capture.
davidsh updated this object.
davidsh added a subscriber: cfe-commits.
ABataev accepted this revision.Jul 18 2016, 7:53 PM
ABataev edited edge metadata.

LG

This revision is now accepted and ready to land.Jul 18 2016, 7:53 PM
This revision was automatically updated to reflect the committed changes.