diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2025-01-09 00:07:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 00:07:57 -0400 |
commit | e438513f2e2ff7a19c671983ff22a14909c96859 (patch) | |
tree | 2afa2e8c8debc585282ed282424e4a0a0a11805f /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | c6b7bd42d58c166ed37cdd51bd46eaf2564b1f96 (diff) | |
download | llvm-e438513f2e2ff7a19c671983ff22a14909c96859.zip llvm-e438513f2e2ff7a19c671983ff22a14909c96859.tar.gz llvm-e438513f2e2ff7a19c671983ff22a14909c96859.tar.bz2 |
[AIX][AsmPrinter] Fix unsigned subtraction wrap-around (#122214)
Unsigned subtraction wrap-around occurs in `emitGlobalConstantImpl` on
an AIX-specific code path from 8e4423eb0888 when a structure type has
zero elements.
With assertions enabled, this manifests as:
```
TypeSize llvm::StructLayout::getElementOffset(unsigned int) const: Assertion `Idx < NumElements && "Invalid element idx!"' failed.
```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions