Not sure if this really does the right thing, but it kind of matches a similar if directive in the corresponding x86_64 code:
if (info->PrologEnd) EmitAbsDifference(streamer, info->PrologEnd, info->Begin); else streamer.EmitIntValue(0, 1);
This at least avoids crashing on cases of a few .seh_* directives in (inline) assembly (which is present in a few places in mingw-w64).
This is the one that misbehaves, because it has no end prologue, right?