[PATCH] D30135: [OpenMP] Generate better diagnostics for cancel and cancellation point

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 20 01:45:27 PST 2017


ABataev added a comment.

I see. I think it is better to check the `CancelRegion` just before call of `CheckNestingOfRegions()` function. You need to extract checks for `CancelRegion` from `ActOnOpenMPCancellationPointDirective()` and `ActOnOpenMPCancelDirective()` functions into a standalone function and call it before `CheckNestingOfRegions()`.


https://reviews.llvm.org/D30135





More information about the cfe-commits mailing list