aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2019-11-03 17:37:34 +0100
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2019-11-03 17:37:49 +0100
commite2549a0a2517514f87005a63ce4fddb1877b2307 (patch)
treeaaf09eccc63104fc7487197c4ed556a9d5a47c26 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parentc4305337716f0f3eb76400f288cd0dee001d744d (diff)
downloadllvm-e2549a0a2517514f87005a63ce4fddb1877b2307.zip
llvm-e2549a0a2517514f87005a63ce4fddb1877b2307.tar.gz
llvm-e2549a0a2517514f87005a63ce4fddb1877b2307.tar.bz2
[DebugInfo] Fix for DW_OP_LLVM_fragment in DIExpression::isImplicit()
DIExpression::isImplicit() did not handle DW_OP_LLVM_fragment correctly. It was scanning the elements in the expression by iterating from the end. But we do not know the position of ops unless we iterate from the beginning of the expression, since DW_OP:s and their operands are stored flat in the expression list. The old code also assumed that a DW_OP_LLVM_fragment only occupied one element in the expression list, but it actually occupies three elements.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions