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

Alexey Bataev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 31 06:33:02 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;
+
----------------
alexey-bataev wrote:

Why do you need this? MessageString should be enough. Just generate a cast to `const char *` for StringLiteral

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


More information about the llvm-branch-commits mailing list