================
@@ -19999,6 +19999,8 @@ static bool TryEvaluateBuiltinNaN(const ASTContext 
&Context,
   const StringLiteral *S = dyn_cast<StringLiteral>(Arg->IgnoreParenCasts());
   if (!S) return false;
 
+  if (!S->isOrdinary() && !S->isUTF8()) return false;
----------------
AaronBallman wrote:

I think we only want ordinary string literals; I don't think we want to support 
`u8"whatever"` unless there are compelling use cases.

https://github.com/llvm/llvm-project/pull/205452
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to