r212156 - [OPENMP] Fixed error message reporting for nesting of regions

Alexey Bataev a.bataev at hotmail.com
Tue Jul 1 20:04:53 PDT 2014


Author: abataev
Date: Tue Jul  1 22:04:53 2014
New Revision: 212156

URL: http://llvm.org/viewvc/llvm-project?rev=212156&view=rev
Log:
[OPENMP] Fixed error message reporting for nesting of regions

Modified:
    cfe/trunk/lib/Sema/SemaOpenMP.cpp

Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=212156&r1=212155&r2=212156&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Tue Jul  1 22:04:53 2014
@@ -1054,8 +1054,8 @@ bool CheckNestingOfRegions(Sema &SemaRef
     }
     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;
     }
   }





More information about the cfe-commits mailing list