================
@@ -1358,6 +1359,8 @@ class ConstExprEmitter :
   }
 
   llvm::Constant *VisitStringLiteral(StringLiteral *E, QualType T) {
+    if (!isa<ConstantArrayType>(T.getDesugaredType(CGM.getContext())))
----------------
nickdesaulniers wrote:

Alternatively this could be:

`if (isa<LValueReferenceType>)`

any preference/thoughts @efriedma-quic ?

https://github.com/llvm/llvm-project/pull/70366
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to