diff options
author | David Stenberg <david.stenberg@ericsson.com> | 2024-03-15 12:51:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 12:51:06 +0100 |
commit | 61671e2500771dfbf502acd86e2ef70cba847a39 (patch) | |
tree | d4aaf24843418d5535c7be8cadbf6e1d63f677ec /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | a7f3d17de18a8be07b74484802582404a32c6527 (diff) | |
download | llvm-61671e2500771dfbf502acd86e2ef70cba847a39.zip llvm-61671e2500771dfbf502acd86e2ef70cba847a39.tar.gz llvm-61671e2500771dfbf502acd86e2ef70cba847a39.tar.bz2 |
[DebugInfo] Fix faulty DIExpression::appendToStack assert (#85255)
The appendToStack() function asserts that no DW_OP_stack_value or
DW_OP_LLVM_fragment operations are present in the operations to be
appended. The function did that by iterating over all elements in the
array rather than just the operations, leading it to falsely asserting
on the following input produced by getExt(), since 159 (0x9f) is the
DWARF code for DW_OP_stack_value:
{dwarf::DW_OP_LLVM_convert, 159, dwarf::DW_ATE_signed}
Fix this by using expr_op iterators.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions