]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fixed error message reporting for nesting of regions
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 Jul 2014 03:04:53 +0000 (03:04 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 Jul 2014 03:04:53 +0000 (03:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212156 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOpenMP.cpp

index c7e377e2181c90099805c048958b6c8dfa9e7af9..b1786fed0bc17566be4065e2da5ed35024873c35 100644 (file)
@@ -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;
     }
   }