]> granicus.if.org Git - llvm/commit
MachineVerifier: Don't crash if MachineOperand has no parent
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 30 Apr 2015 19:35:41 +0000 (19:35 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 30 Apr 2015 19:35:41 +0000 (19:35 +0000)
commit816fd0095d95ab219dd2a794c87b532ce15b0cba
tree9f5d0ca99e7f320cde42eee4b239c9e9712e3b7e
parent1870668beb784a79aae8e37d6e5939e9d2a94f3f
MachineVerifier: Don't crash if MachineOperand has no parent

If you somehow added a MachineOperand to an instruction
that did not have the parent set, the verifier would
crash since it attempts to use the operand's parent.

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