From 8d2a77de631dad32cb462e85f5cc935418cbf48d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 8 May 2012 21:24:39 +0000 Subject: Fix thinko in conditional. Part of rdar://11352000 and should bring the buildbots back. llvm-svn: 156421 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 028116cd282..497840e57f9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2050,7 +2050,7 @@ void DwarfDebug::emitDebugLoc() { Asm->EmitInt8(dwarf::DW_OP_plus_uconst); Asm->EmitULEB128(DV.getAddrElement(++i)); } else if (Element == DIBuilder::OpDeref) { - if (Entry.Loc.getOffset()) + if (!Entry.Loc.isReg()) Asm->EmitInt8(dwarf::DW_OP_deref); } else llvm_unreachable("unknown Opcode found in complex address"); -- cgit v1.2.3