[clang] [clang][CodeGen] Fix assertion failure with #embed in array new-expression initializers (PR #218262)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 02:35:48 PDT 2026
================
@@ -0,0 +1,89 @@
+// RUN: %clang_cc1 %s -triple x86_64 -emit-llvm -o - | FileCheck %s
+
+// GH128985: #embed in the braced initializer of an array new-expression
+// asserted in codegen.
+// The first four bytes of this file are '/', '/', ' ', 'R' (47, 47, 32, 82).
----------------
Fznamznon wrote:
I would suggest adding a test input to CodeGenCXX/Inputs instead of using the file itself which is a subject to change.
https://github.com/llvm/llvm-project/pull/218262
More information about the cfe-commits
mailing list