aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-06-26 18:02:22 -0700
committerFangrui Song <i@maskray.me>2023-06-26 18:02:22 -0700
commitf9b14f0b7cddd4c10d3fa6316ebb52fce2ad0e5b (patch)
treefb97c0d37adcb3bc9f83dd474db2778847d2d658 /llvm/lib/MC/MCDwarf.cpp
parent665ccc19d38ccee9bba869ec9706610cefb10b0c (diff)
downloadllvm-f9b14f0b7cddd4c10d3fa6316ebb52fce2ad0e5b.zip
llvm-f9b14f0b7cddd4c10d3fa6316ebb52fce2ad0e5b.tar.gz
llvm-f9b14f0b7cddd4c10d3fa6316ebb52fce2ad0e5b.tar.bz2
[MC] Report location information for MCDwarfCallFrameFragment diagnostics
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 4d21098..177f957 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -1476,7 +1476,7 @@ void FrameEmitterImpl::emitCFIInstructions(ArrayRef<MCCFIInstruction> Instrs,
if (BaseLabel && Label) {
MCSymbol *ThisSym = Label;
if (ThisSym != BaseLabel) {
- Streamer.emitDwarfAdvanceFrameAddr(BaseLabel, ThisSym, {});
+ Streamer.emitDwarfAdvanceFrameAddr(BaseLabel, ThisSym, Instr.getLoc());
BaseLabel = ThisSym;
}
}