]> granicus.if.org Git - clang/commitdiff
[OPENMP] Improved processing of 'priority' clause, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Jul 2016 04:21:09 +0000 (04:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Jul 2016 04:21:09 +0000 (04:21 +0000)
Removed some old comments + improved handling of 'priority' clause value
during codegen after comments from Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275945 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmtOpenMP.cpp

index 26f780fdd7deea6c0429895e7ff427dd047d9d9c..fdd0514d732d29d0f598619abadcba49df4192a2 100644 (file)
@@ -2425,10 +2425,8 @@ void CodeGenFunction::EmitOMPTaskBasedDirective(const OMPExecutableDirective &S,
   }
   // Check if the task has 'priority' clause.
   if (const auto *Clause = S.getSingleClause<OMPPriorityClause>()) {
-    // Runtime currently does not support codegen for priority clause argument.
-    // TODO: Add codegen for priority clause arg when runtime lib support it.
     auto *Prio = Clause->getPriority();
-    Data.Priority.setInt(Prio);
+    Data.Priority.setInt(/*IntVal=*/true);
     Data.Priority.setPointer(EmitScalarConversion(
         EmitScalarExpr(Prio), Prio->getType(),
         getContext().getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1),