aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-10-10 08:15:17 -0600
committerGitHub <noreply@github.com>2025-10-10 15:15:17 +0100
commit311d1138e7e736f887dadba16ffb64ee9b47b159 (patch)
tree8f15ff70b794303976ab25be82db142fc791c950 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent9922d8dd799dd22f3e34e774ed2750df56a4ca4d (diff)
downloadllvm-311d1138e7e736f887dadba16ffb64ee9b47b159.zip
llvm-311d1138e7e736f887dadba16ffb64ee9b47b159.tar.gz
llvm-311d1138e7e736f887dadba16ffb64ee9b47b159.tar.bz2
Do not emit right shift by 0 in DWARF expressions (#162738)
DW_OP_LLVM_extract_bits_zext and DW_OP_LLVM_extract_bits_sext can end up emitting "DW_OP_constu 0; DW_OP_shr" when given certain arguments. However, a shift by zero is not useful, and so it can be omitted.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions