[clang] [CIR] Fix incorrect ConstArrayAttr trailing_zeros parsing (PR #188742)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 03:04:29 PDT 2026
NotLebedev wrote:
Added `clang/test/CIR/IR/string-trailing-zeros.cir`. Essentially checks `cir.global` declaration for the following two cases:
```c
char *a = "qwe";
char b[100] = "qwe";
```
Without the patch fails due to cir-opt crash. With patch works fine.
https://github.com/llvm/llvm-project/pull/188742
More information about the cfe-commits
mailing list