CodeGen: Fix MachineInstr::print() for DBG_VALUE
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 3 Apr 2015 16:23:04 +0000 (16:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 3 Apr 2015 16:23:04 +0000 (16:23 +0000)
commitc5bd3e01df02b0101f69749208c17d87e9a2e610
tree00a2323d6786d4312d1108e1ae8ec0de172589b8
parentefece52160095fb4837c51e304a23c22af860107
CodeGen: Fix MachineInstr::print() for DBG_VALUE

Grab the `MDLocalVariable` from the second-to-last argument; the last
argument is an `MDExpression`, and mixing them up will crash.

llvm-svn: 234019
llvm/lib/CodeGen/MachineInstr.cpp
llvm/test/DebugInfo/X86/mi-print.ll [new file with mode: 0644]