diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-18 20:46:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-18 20:46:57 -0700 |
| commit | d1efc69a20d941116d1398e4471689658cd6b888 (patch) | |
| tree | 22d7e56c02cea2d125ba483089a85205bbf45c15 /source/slang/slang-ir-any-value-inference.cpp | |
| parent | 95fcf65c38d52ed458a3b11622ea8b55a3864c24 (diff) | |
Use target-dependent pointer size in natural layout. (#3210)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-any-value-inference.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-inference.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-ir-any-value-inference.cpp b/source/slang/slang-ir-any-value-inference.cpp index eb4aa670f..ae3e67397 100644 --- a/source/slang/slang-ir-any-value-inference.cpp +++ b/source/slang/slang-ir-any-value-inference.cpp @@ -86,6 +86,7 @@ namespace Slang } void inferAnyValueSizeWhereNecessary( + TargetRequest* targetReq, IRModule* module) { // Go through the global insts and collect all interface types. @@ -212,7 +213,7 @@ namespace Slang for (auto implType : mapInterfaceToImplementations[interfaceType]) { IRSizeAndAlignment sizeAndAlignment; - getNaturalSizeAndAlignment((IRType*)implType, &sizeAndAlignment); + getNaturalSizeAndAlignment(targetReq, (IRType*)implType, &sizeAndAlignment); maxAnyValueSize = Math::Max(maxAnyValueSize, sizeAndAlignment.size); } @@ -228,4 +229,4 @@ namespace Slang } } } -};
\ No newline at end of file +}; |
