[llvm-commits] [llvm] r156421 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Eric Christopher
echristo at apple.com
Tue May 8 14:24:39 PDT 2012
Author: echristo
Date: Tue May 8 16:24:39 2012
New Revision: 156421
URL: http://llvm.org/viewvc/llvm-project?rev=156421&view=rev
Log:
Fix thinko in conditional.
Part of rdar://11352000 and should bring the buildbots back.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=156421&r1=156420&r2=156421&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue May 8 16:24:39 2012
@@ -2050,7 +2050,7 @@
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");
More information about the llvm-commits
mailing list