[PATCH] D55670: [RFC] [COFF] [AArch64] Avoid crashing on .seh directives in assembly

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 14:02:36 PST 2018


mstorsjo created this revision.
mstorsjo added reviewers: rnk, mgrang, ssijaric, TomTan.
Herald added subscribers: kristof.beyls, javed.absar.

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).


Repository:
  rL LLVM

https://reviews.llvm.org/D55670

Files:
  lib/MC/MCWin64EH.cpp
  test/MC/AArch64/seh.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55670.178132.patch
Type: text/x-patch
Size: 3172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181213/79c974aa/attachment.bin>


More information about the llvm-commits mailing list