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)
commitee5c2ab73406f419014cb7a3667825fff5b16de8
treeedf9a8823d8b77d5c67b2b2f26bb43ce8c99a5bd
parent4d8d2ec3ebf2334e8f16b4d702e3e6e6788c4a3e
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.

llvm-svn: 236249
llvm/lib/CodeGen/MachineVerifier.cpp