From 6c5bbae7b31f194bb2fbe7d9d4b2ca883855b205 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 16 Mar 2017 00:52:18 +0000 Subject: Check that line table entries don't spill over between sections even if they're empty at the end of a section llvm-svn: 297922 --- llvm/lib/MC/MCObjectStreamer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/MC/MCObjectStreamer.cpp') diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index 2b89407547a..8f502fc3e2f 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -203,6 +203,7 @@ bool MCObjectStreamer::changeSectionImpl(MCSection *Section, const MCExpr *Subsection) { assert(Section && "Cannot switch to a null section!"); flushPendingLabels(nullptr); + getContext().clearDwarfLocSeen(); bool Created = getAssembler().registerSection(*Section); -- cgit v1.2.3