Fix PR22762. When emitting a DWARF expression check whether this is the
authorAdrian Prantl <aprantl@apple.com>
Tue, 3 Mar 2015 20:12:52 +0000 (20:12 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 3 Mar 2015 20:12:52 +0000 (20:12 +0000)
commitb283815a3021d42803da1918ac808bd8e7e79a4f
treed19771cccbe0347dc96d95f48e4235ff82e28b25
parent6efb8bd947edae14936c6cbff7585e093f5f91a1
Fix PR22762. When emitting a DWARF expression check whether this is the
frame register before checking if there is a DWARF register number for it.

Thanks to H.J. Lu for diagnosing this and providing the testcase!

llvm-svn: 231121
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/test/DebugInfo/X86/frame-register.ll [new file with mode: 0644]