================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to