diff options
author | Nikita Popov <npopov@redhat.com> | 2024-11-19 15:16:26 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-11-19 15:17:59 +0100 |
commit | abac5be673a2053cceab8ce25009722e45021b9f (patch) | |
tree | 99e4de4cb758d1a9d9419cd3f712431d6ee72f01 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 03d8831fa8ef5b7e32172c718b550a454645faea (diff) | |
download | llvm-abac5be673a2053cceab8ce25009722e45021b9f.zip llvm-abac5be673a2053cceab8ce25009722e45021b9f.tar.gz llvm-abac5be673a2053cceab8ce25009722e45021b9f.tar.bz2 |
[InstCombine] Fix APInt ctor assertion
The (extended) bit width might not fit into the (non-extended)
type, resulting in an incorrect truncation of the compared value.
Fix this by using m_SpecificInt(), which is both simpler and
handles this correctly.
Fixes the assertion failure reported in:
https://github.com/llvm/llvm-project/pull/114539#issuecomment-2485799395
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions