summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2017-02-22 06:49:10 +0000
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2017-02-22 06:49:10 +0000
commit64a9e3c530b0b034ff7de1277dd648ba5b95c6f6 (patch)
treecf4a41a36f6e7790a24777fde8063f131c412a87 /llvm/lib
parent9011aca5f4e8b3761626fd99cfb04dd260a40df8 (diff)
downloadbcm5719-llvm-64a9e3c530b0b034ff7de1277dd648ba5b95c6f6.tar.gz
bcm5719-llvm-64a9e3c530b0b034ff7de1277dd648ba5b95c6f6.zip
[OpenMP] Generate better diagnostics for cancel and cancellation point
checkNestingOfRegions uses CancelRegion to determine whether cancel and cancellation point are valid in the given nesting. This leads to unuseful diagnostics if CancelRegion is invalid. The given test case has produced: region cannot be closely nested inside 'parallel' region As a solution, introduce checkCancelRegion and call it first to get the expected error: one of 'for', 'parallel', 'sections' or 'taskgroup' is expected Differential Revision: https://reviews.llvm.org/D30135 llvm-svn: 295808
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud