Skip to content

Commit 08d25b8

Browse files
author
Joe Shajrawi
committed
Merge pull request #14170 from shajrawi/buffix_class_offset2
Sema: request member layout in the subscript_expr
1 parent 3e235aa commit 08d25b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ namespace {
14811481
}
14821482

14831483
auto subscript = cast<SubscriptDecl>(choice.getDecl());
1484+
cs.TC.requestMemberLayout(subscript);
14841485

14851486
auto &tc = cs.getTypeChecker();
14861487
auto baseTy = cs.getType(base)->getRValueType();

0 commit comments

Comments
 (0)