================
@@ -19238,8 +18369,13 @@ OMPClause *SemaOpenMP::ActOnOpenMPMessageClause(Expr
*ME,
SourceLocation EndLoc) {
assert(ME && "NULL expr in Message clause");
QualType Type = ME->getType();
- if ((!Type->isPointerType() && !Type->isArrayType()) ||
- !Type->getPointeeOrArrayElementType()->isAnyCharacterType()) {
+ // The message is consumed as a narrow string by Sema and the runtime.
+ bool IsNarrowString = false;
+ if (Type->isPointerType() || Type->isArrayType()) {
+ const auto *ElemTy = Type->getPointeeOrArrayElementType();
+ IsNarrowString = ElemTy->isCharType() || ElemTy->isChar8Type();
----------------
alexey-bataev wrote:
Why isChar8Type is allowed then?
https://github.com/llvm/llvm-project/pull/226080
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits