Skip to content

Commit d6c7736

Browse files
author
Joe Shajrawi
authored
Merge pull request #14170 from shajrawi/buffix_class_offset2
Sema: request member layout in the subscript_expr
2 parents 3091ee3 + b267c12 commit d6c7736

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
@@ -1525,6 +1525,7 @@ namespace {
15251525
}
15261526

15271527
auto subscript = cast<SubscriptDecl>(choice.getDecl());
1528+
cs.TC.requestMemberLayout(subscript);
15281529

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

0 commit comments

Comments
 (0)