From c8821046f8998c3e69985fdc53d8241c6ad4c762 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 2 Nov 2010 17:37:00 +0000 Subject: [PATCH] Simplify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118027 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6ed70e6a3a1..00232267a26 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -822,9 +822,8 @@ void DwarfDebug::addAddress(DIE *Die, unsigned Attribute, const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo(); unsigned Reg = RI->getDwarfRegNum(Location.getReg(), false); DIEBlock *Block = new (DIEValueAllocator) DIEBlock(); - const TargetRegisterInfo *TRI = Asm->TM.getRegisterInfo(); - if (TRI->getFrameRegister(*Asm->MF) == Location.getReg() + if (RI->getFrameRegister(*Asm->MF) == Location.getReg() && Location.getOffset()) { // If variable offset is based in frame register then use fbreg. addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg); -- 2.34.1