aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorThomas Sepez <tsepez@users.noreply.github.com>2025-02-10 18:34:50 +0000
committerGitHub <noreply@github.com>2025-02-10 19:34:50 +0100
commit7438a024b66695fd9a22571da901533e6771a617 (patch)
treebb15716ab85c6719a88c6bdcd2f897b9faa32b48 /llvm/lib/CodeGen/MachineOperand.cpp
parent1e14edb8981326e18509409be5c95e0c8c740891 (diff)
downloadllvm-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