diff options
author | Fangrui Song <i@maskray.me> | 2023-06-26 18:02:22 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-06-26 18:02:22 -0700 |
commit | f9b14f0b7cddd4c10d3fa6316ebb52fce2ad0e5b (patch) | |
tree | fb97c0d37adcb3bc9f83dd474db2778847d2d658 /llvm/lib/MC/MCDwarf.cpp | |
parent | 665ccc19d38ccee9bba869ec9706610cefb10b0c (diff) | |
download | llvm-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.cpp | 2 |
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; } } |