summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-08-02 15:22:17 +0000
committerAdrian Prantl <aprantl@apple.com>2017-08-02 15:22:17 +0000
commit2049c0d734afa57d21525ff54028f39a424746ca (patch)
tree70ff60f023d9f1cadd8f73f8be54c835fbbeac3d /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
parent188053af5eb3e53f9de28f6915546efaa9856cbe (diff)
downloadbcm5719-llvm-2049c0d734afa57d21525ff54028f39a424746ca.tar.gz
bcm5719-llvm-2049c0d734afa57d21525ff54028f39a424746ca.zip
Remove unreachable code. (NFC)
MachineLocation::getOffset() always returns 0. rdar://problem/33580047 llvm-svn: 309823
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index 4f4ebfc5629..784a1d512c1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -473,11 +473,7 @@ void DwarfUnit::addBlockByrefAddress(const DbgVariable &DV, DIE &Die,
if (Location.isIndirect())
DwarfExpr.setMemoryLocationKind();
- SmallVector<uint64_t, 9> Ops;
- if (Location.isIndirect() && Location.getOffset()) {
- Ops.push_back(dwarf::DW_OP_plus_uconst);
- Ops.push_back(Location.getOffset());
- }
+ SmallVector<uint64_t, 6> Ops;
// If we started with a pointer to the __Block_byref... struct, then
// the first thing we need to do is dereference the pointer (DW_OP_deref).
if (isPointer)
OpenPOWER on IntegriCloud