Author: Mariya Podchishchaeva Date: 2025-03-20T16:13:54+01:00 New Revision: 392b8f3e6353a1bcb980b73491a26cd5d04020bd
URL: https://github.com/llvm/llvm-project/commit/392b8f3e6353a1bcb980b73491a26cd5d04020bd DIFF: https://github.com/llvm/llvm-project/commit/392b8f3e6353a1bcb980b73491a26cd5d04020bd.diff LOG: [clang] Handle Binary StingLiteral kind in one more place (#132201) The bots are upset by https://github.com/llvm/llvm-project/pull/127629 . Fix that. Added: Modified: clang/lib/Sema/SemaExprCXX.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index f085facf7ff55..8f204b949cb2c 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -4143,6 +4143,7 @@ Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) { // We don't allow UTF literals to be implicitly converted break; case StringLiteralKind::Ordinary: + case StringLiteralKind::Binary: return (ToPointeeType->getKind() == BuiltinType::Char_U || ToPointeeType->getKind() == BuiltinType::Char_S); case StringLiteralKind::Wide: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits