OSDN Git Service

[MachineOperand] Fix LiveDebugVariables code after isRenamable change.
authorGeoff Berry <gberry@codeaurora.org>
Fri, 29 Dec 2017 21:01:09 +0000 (21:01 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Fri, 29 Dec 2017 21:01:09 +0000 (21:01 +0000)
commit39064346e3aacae955af4d51bd483f773a05e3b9
tree1144726e86ccc2794a342a01ee3217d7bdceb112
parent7a691a48b11ef2aafbc2ec2b0c75783d4b4088d6
[MachineOperand] Fix LiveDebugVariables code after isRenamable change.

Fix code in LiveDebugVariables that was changing def MachineOperands to
uses, which will hit an assert for dead operands after the change to add
the renamable bit to MachineOperands.  Avoid the assert by clearing the
dead bit before changing the operand to a use.

Fixes issue reported in out of tree target by Jesper Antonsson at Ericsson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveDebugVariables.cpp