[all-commits] [llvm/llvm-project] 37ef74: [MC] [Win64EH] Avoid producing malformed xdata rec...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Thu Aug 27 23:24:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 37ef743cbf3fb1c56cca8035d9acb0cde83976f9
      https://github.com/llvm/llvm-project/commit/37ef743cbf3fb1c56cca8035d9acb0cde83976f9
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-08-28 (Fri, 28 Aug 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCWinEH.h
    M llvm/lib/MC/MCWin64EH.cpp
    M llvm/test/MC/AArch64/seh.s

  Log Message:
  -----------
  [MC] [Win64EH] Avoid producing malformed xdata records

If there's no unwinding opcodes, omit writing the xdata/pdata records.

Previously, this generated truncated xdata records, and llvm-readobj
would error out when trying to print them.

If writing of an xdata record is forced via the .seh_handlerdata
directive, skip it if there's no info to make a sensible unwind
info structure out of, and clearly error out if such info appeared
later in the process.

Differential Revision: https://reviews.llvm.org/D86527


  Commit: db1ec04963cce70f2593e58cecac55f2e6accf52
      https://github.com/llvm/llvm-project/commit/db1ec04963cce70f2593e58cecac55f2e6accf52
  Author: Martin Storsjö <martin at martin.st>
  Date:   2020-08-28 (Fri, 28 Aug 2020)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp

  Log Message:
  -----------
  [ValueTracking] Remove a stray semicolon. NFC.

This silences warnings when built with GCC at least.


Compare: https://github.com/llvm/llvm-project/compare/a5d0fd19d97c...db1ec04963cc


More information about the All-commits mailing list