Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion src/ir/subtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ struct SubTypes {
depths[HeapTypes::noexn.getBasic(share)] = 0;

// func would appear already if we saw function types, but if not, ensure
// it exists here.
// it exists here. Ditto for cont.
depths[HeapTypes::func.getBasic(share)];
depths[HeapTypes::cont.getBasic(share)];
}

return depths;
Expand Down
1 change: 1 addition & 0 deletions test/gtest/type-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,7 @@ TEST_F(TypeTest, TestMaxStructDepths) {
EXPECT_EQ(maxDepths[HeapType::nocont], Index(0));
EXPECT_EQ(maxDepths[HeapType::noexn], Index(0));
EXPECT_EQ(maxDepths[HeapType::func], Index(0));
EXPECT_EQ(maxDepths[HeapType::cont], Index(0));
}

TEST_F(TypeTest, TestMaxArrayDepths) {
Expand Down
Loading