diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-05 14:37:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-05 14:37:48 -0700 |
| commit | 6c7120d684cc46caafbe348d658158c0060a7638 (patch) | |
| tree | e8ba738564b5cdceda22013900a0ed762c184bd3 /source/slang/slang-type-layout.cpp | |
| parent | 6063304cb8d73d430e7ef81c62cd9822302fcc19 (diff) | |
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 <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
| -rw-r--r-- | source/slang/slang-type-layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<HLSLPackOffsetSemantic>()) continue; |
