diff options
author | Thomas Sepez <tsepez@users.noreply.github.com> | 2025-02-10 18:34:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 19:34:50 +0100 |
commit | 7438a024b66695fd9a22571da901533e6771a617 (patch) | |
tree | bb15716ab85c6719a88c6bdcd2f897b9faa32b48 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 1e14edb8981326e18509409be5c95e0c8c740891 (diff) | |
download | llvm-7438a024b66695fd9a22571da901533e6771a617.zip llvm-7438a024b66695fd9a22571da901533e6771a617.tar.gz llvm-7438a024b66695fd9a22571da901533e6771a617.tar.bz2 |
[-Wunsafe-buffer-usage] Fix assert when constexpr size passed to snprintf() (#119786) (#124022)
EvaluateAsConstExpr() can return an lvalue which is not compatible
with a subsequent getInt() call. Instead, use EvaluateAsInt() which
will use all techniques availble to get an int result compatible
with the subsequent getInt() call.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions