This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] parsing 'linear' clause (for directive 'omp simd')
ClosedPublic

Authored by amusman on Apr 3 2014, 1:24 AM.

Diff Detail

Event Timeline

With some improvement to the warning message, LGTM.

include/clang/Basic/DiagnosticSemaKinds.td
6931

The comment on the code that generates the warning says,

// Warn about zero linear step (it would be probably better specified as
// making corresponding variables 'const').

and I think that would make a better warning than what you have here. The "probably it is not necessary" language I think is likely going to be confusing (because the user will wonder under what circumstances such a construct might be needed).

How about, "zero linear step (%0 should probably be const)"

Fixed, committed - revision 206891.

Thanks,
Alexander

ABataev accepted this revision.Apr 28 2014, 7:27 PM
ABataev edited edge metadata.
This revision is now accepted and ready to land.Apr 28 2014, 7:27 PM
ABataev closed this revision.Apr 28 2014, 7:27 PM