[llvm-branch-commits] [clang] [llvm] [OpenMP][clang] 6.0: num_threads strict (part 3: codegen) (PR #146405)

Robert Imschweiler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 31 06:38:28 PDT 2025


================
@@ -1874,6 +1874,10 @@ class OMPMessageClause final : public OMPClause {
   // Expression of the 'message' clause.
   Stmt *MessageString = nullptr;
 
+  // The message as a StringLiteral in case it is as string literal. This might
+  // be needed during compile time.
+  StringLiteral *MessageStringLiteral = nullptr;
+
----------------
ro-i wrote:

We need a string literal when we want to print the error during compilation. Then we need the `StringLiteral::getString()` method, see my changes for `SemaOpenMP::ActOnOpenMPErrorDirective()`.

https://github.com/llvm/llvm-project/pull/146405


More information about the llvm-branch-commits mailing list