aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2025-01-09 00:07:57 -0400
committerGitHub <noreply@github.com>2025-01-09 00:07:57 -0400
commite438513f2e2ff7a19c671983ff22a14909c96859 (patch)
tree2afa2e8c8debc585282ed282424e4a0a0a11805f /clang/lib/CodeGen/CodeGenAction.cpp
parentc6b7bd42d58c166ed37cdd51bd46eaf2564b1f96 (diff)
downloadllvm-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