[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)
llvm-svn: 212156

clang/lib/Sema/SemaOpenMP.cpp

index c7e377e..b1786fe 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;
     }
   }