From: Alexey Bataev Date: Wed, 2 Jul 2014 03:04:53 +0000 (+0000) Subject: [OPENMP] Fixed error message reporting for nesting of regions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=645fd98f93082e43785353887efda870dcb2e1d9;p=clang [OPENMP] Fixed error message reporting for nesting of regions git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index c7e377e218..b1786fed0b 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -1054,8 +1054,8 @@ bool CheckNestingOfRegions(Sema &SemaRef, DSAStackTy *Stack, } if (NestingProhibited) { SemaRef.Diag(StartLoc, diag::err_omp_prohibited_region) - << CloseNesting << getOpenMPDirectiveName(ParentRegion) << true - << getOpenMPDirectiveName(CurrentRegion) << ShouldBeInParallelRegion; + << CloseNesting << getOpenMPDirectiveName(ParentRegion) + << ShouldBeInParallelRegion << getOpenMPDirectiveName(CurrentRegion); return true; } }