[Mlir-commits] [clang] [mlir] [Clang]Check for a valid Index in array before getting it (PR #172399)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Dec 19 10:46:38 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 51609 tests passed
* 886 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/array-overflow-index.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\22\include -nostdsysteminc --std=c++17 -fexperimental-new-constant-interpreter -verify C:\_work\llvm-project\llvm-project\clang\test\AST\array-overflow-index.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\22\include' -nostdsysteminc --std=c++17 -fexperimental-new-constant-interpreter -verify 'C:\_work\llvm-project\llvm-project\clang\test\AST\array-overflow-index.cpp'
# .---command stderr------------
# | error: 'expected-note' diagnostics expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\array-overflow-index.cpp Line 9 (directive at C:\_work\llvm-project\llvm-project\clang\test\AST\array-overflow-index.cpp:8): cannot refer to element 18446744073709551615 of array of 1 element in a constant expression
# | error: 'expected-note' diagnostics seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\array-overflow-index.cpp Line 9: cannot refer to element 4294967295 of array of 1 element in a constant expression
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/172399
More information about the Mlir-commits
mailing list