summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-17 22:30:56 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-17 22:30:56 +0000
commit57bab0bc97d1e6ff118fb2f3a2a6856cbedff1de (patch)
treef4b956c4e0629db481c1ea19f9d9558c1de0ac80 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent1d89a02abbaa48745066a3c3eabe2fbaa2194def (diff)
downloadbcm5719-llvm-57bab0bc97d1e6ff118fb2f3a2a6856cbedff1de.tar.gz
bcm5719-llvm-57bab0bc97d1e6ff118fb2f3a2a6856cbedff1de.zip
AsmPrinter: Take range in DwarfExpression::AddExpression(), NFC
Previously `DwarfExpression::AddExpression()` relied on default-constructing the end iterators for `DIExpression` -- once the operands are represented explicitly via `MDExpression` (instead of via the strange `StringRef` navigator in `DIHeaderIterator`) this won't work. Explicitly take an iterator for the end of the range. llvm-svn: 229572
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-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 e214591a1fd..4aa12ed2506 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1725,7 +1725,7 @@ void DwarfDebug::emitDebugLocValue(ByteStreamer &Streamer,
// Complex address entry.
if (Loc.getOffset()) {
DwarfExpr.AddMachineRegIndirect(Loc.getReg(), Loc.getOffset());
- DwarfExpr.AddExpression(Expr, PieceOffsetInBits);
+ DwarfExpr.AddExpression(Expr.begin(), Expr.end(), PieceOffsetInBits);
} else
DwarfExpr.AddMachineRegExpression(Expr, Loc.getReg(),
PieceOffsetInBits);
OpenPOWER on IntegriCloud