Closed
Description
Reproducer:
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
// RUN: FileCheck --input-file=%t.ll %s -check-prefix=LLVM
void f(char *fmt, ...);
void test() {
f("test\0");
}
got:
loc("/disk2/workspace.xuchuanqi/clangir/clang/test/CIR/Lowering/str.c":6:7): error: 'llvm.mlir.global' op requires an i8 array type of the length equal to that of the string attribute
Metadata
Metadata
Assignees
Labels
No labels