Skip to content

[Wasm Exceptions] Assertion on "Active sort region list not finished" #13554

@kripken

Description

@kripken

Full error:

clang++: /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp:330: void sortBlocks(llvm::MachineFunction &, const llvm::MachineLoopInfo &, const llvm::WebAssemblyExceptionInfo &, const llvm::MachineDominatorTree &): Assertion `Entries.empty() && "Active sort region list not finished"' failed.

Testcase:

int main() {
  try {
    try {
      throw 0;
    } catch (int) {
    }
  } catch (int) {
  }
}

STR: ./em++ a.cpp -c -fwasm-exceptions on #13485 (where this was found, using tot from right now, sdk-releases-upstream-0fcee855ada6358c4fe6e8c2a7f291c54cde4876-64bit).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions