Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a comment
  • Loading branch information
kripken committed May 4, 2026
commit bf6eaaa1393d259af4b4e29f2c491f06c83b89f0
5 changes: 5 additions & 0 deletions src/passes/Directize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ struct FunctionDirectizer : public WalkerPass<PostWalker<FunctionDirectizer>> {
}
auto name = flatTable.names[index];
if (!name.is()) {
// No segment wrote to this part of the initial contents of the table.
// This must trap, as we only get here if we can optimize such cases,
// relying on the fact that the table cannot be modified, or at least the
// initial contents cannot be.
assert(!table.mayBeModified || table.initialContentsImmutable);
return CallUtils::Trap{};
}
auto* func = getModule()->getFunction(name);
Expand Down
Loading