diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index b5f7270ba5e7..4a64202c4784 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -810,7 +810,7 @@ void DwarfException::EmitExceptionTable() { // number of 16-byte bundles. The first call site is counted relative to // the start of the procedure fragment. Asm->OutStreamer.AddComment("Region start"); - EmitSectionOffset(EHFuncBeginSym, EndLabel, true); + EmitSectionOffset(BeginLabel, EHFuncBeginSym, true, true); Asm->OutStreamer.AddComment("Region length"); EmitDifference(EndLabel, BeginLabel, true);