[Mlir-commits] [mlir] [MLIR] Validate APInt bitwidth in IntegerAttr::get(Type, APInt) (PR #188725)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Mar 26 04:37:03 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3583 tests passed
* 415 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### MLIR-Unit
<details>
<summary>MLIR-Unit.IR/_/MLIRIRTests_exe/IntegerAttrDeathTest/WrongBitWidthForIndexType</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\mlir\unittests\IR\.\MLIRIRTests.exe --gtest_filter=IntegerAttrDeathTest.WrongBitWidthForIndexType
--
C:\_work\llvm-project\llvm-project\mlir\unittests\IR\AttributeTest.cpp:564
Death test: IntegerAttr::get(indexTy, APInt(1, 1))
Result: died but not with expected error.
Expected: contains regular expression "APInt bit width must match IndexType internal storage bit width"
Actual msg:
[ DEATH ] Assertion failed: value.getBitWidth() == IndexType::kInternalStorageBitWidth && "IntegerAttr::get: APInt bit width must match IndexType internal " "storage bit width", file C:\_work\llvm-project\llvm-project\build\tools\mlir\include\mlir/IR/BuiltinAttributes.cpp.inc, line 408
[ DEATH ]
```
</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/188725
More information about the Mlir-commits
mailing list