From 6c7120d684cc46caafbe348d658158c0060a7638 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 5 Jul 2023 14:37:48 -0700 Subject: Bottleneck DeclRef creation through ASTBuilder. (#2689) * Bottleneck DeclRef creation through ASTBuilder. * Fix clang error. * Fix. * Fix. * More fix. * Rebase on top of tree. --------- Co-authored-by: Yong He --- source/slang/slang-type-layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-type-layout.cpp') diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp index 4d52b76eb..1388eba73 100644 --- a/source/slang/slang-type-layout.cpp +++ b/source/slang/slang-type-layout.cpp @@ -3903,7 +3903,7 @@ static TypeLayoutResult _createTypeLayout( _addLayout(context, type, typeLayout); // First, add all fields with explicit offsets. - for (auto field : getFields(structDeclRef, MemberFilterStyle::Instance)) + for (auto field : getFields(context.astBuilder, structDeclRef, MemberFilterStyle::Instance)) { // If the field has an explicit offset, then we will // use that to place it. @@ -3919,7 +3919,7 @@ static TypeLayoutResult _createTypeLayout( } } - for (auto field : getFields(structDeclRef, MemberFilterStyle::Instance)) + for (auto field : getFields(context.astBuilder, structDeclRef, MemberFilterStyle::Instance)) { if (const auto packOffsetModifier = field.getDecl()->findModifier()) continue; -- cgit v1.2.3