[all-commits] [llvm/llvm-project] dcfec2: [WebAssembly] Handle empty cleanuppads when adding...

Heejin Ahn via All-commits all-commits at lists.llvm.org
Mon Mar 1 10:07:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcfec279d607c41095f0f2d6469d6e4b2e618269
      https://github.com/llvm/llvm-project/commit/dcfec279d607c41095f0f2d6469d6e4b2e618269
  Author: Heejin Ahn <aheejin at gmail.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
    M llvm/test/CodeGen/WebAssembly/exception.mir

  Log Message:
  -----------
  [WebAssembly] Handle empty cleanuppads when adding catch_all

In `LateEHPrepare::addCatchAlls`, the current code tries to get the
iterator's debug info even when it is `MachineBasicBlock::end()`. This
fixes the bug by adding empty debug info instead in that case.

Reviewed By: tlively

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




More information about the All-commits mailing list