Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Emit an LSDA for methods without landing pads too since we need the i…
Browse files Browse the repository at this point in the history
…nformation about the 'this' register.
  • Loading branch information
vargaz committed May 1, 2018
1 parent fbbfbae commit 0b3cb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen/AsmPrinter/DwarfMonoException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ void DwarfMonoException::EmitMonoEHFrame(const Function *Personality)
// No need for length, CIE, PC begin, PC range, alignment

// Emit augmentation
if (EHFrameInfo.hasLandingPads) {
if (EHFrameInfo.hasLandingPads || EHFrameInfo.MonoEH.FrameReg != -1) {
// Need an extra has_augmentation field as the augmentation size is always encoded
// in 4 bytes
Asm->EmitULEB128(1, "Has augmentation");
Expand Down

0 comments on commit 0b3cb8a

Please sign in to comment.