summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-08 21:24:39 +0000
committerEric Christopher <echristo@apple.com>2012-05-08 21:24:39 +0000
commit8d2a77de631dad32cb462e85f5cc935418cbf48d (patch)
tree80fff9c3ee9850c3e5eab80c64d6b4e21ff2b55f /llvm/lib/CodeGen/AsmPrinter
parent66843480a64a9f23f2a23118d92aa3dd6260af0c (diff)
downloadbcm5719-llvm-8d2a77de631dad32cb462e85f5cc935418cbf48d.tar.gz
bcm5719-llvm-8d2a77de631dad32cb462e85f5cc935418cbf48d.zip
Fix thinko in conditional.
Part of rdar://11352000 and should bring the buildbots back. llvm-svn: 156421
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud