summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-06-02 11:37:45 -0700
committerGitHub <noreply@github.com>2021-06-02 11:37:45 -0700
commit8e571669b3c8d4ac8236d0aed7a960bf88ad2bd1 (patch)
tree60ea6e452d7f28649225fbd93d17702e0af45720 /source/slang/slang-type-layout.cpp
parent7e93e8164c74f61b61ea66f215304abdf453965b (diff)
Fix cyclic reference in `ExtendedTypeLayout`. (#1868)
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp
index f2869886e..42a93f3f0 100644
--- a/source/slang/slang-type-layout.cpp
+++ b/source/slang/slang-type-layout.cpp
@@ -2819,7 +2819,7 @@ static RefPtr<TypeLayout> maybeAdjustLayoutForArrayElementType(
// If nothing needed to be changed on the inner element type,
// then we are done.
- if(adjustedInnerElementTypeLayout == originalInnerElementTypeLayout)
+ if (originalInnerElementTypeLayout == adjustedInnerElementTypeLayout)
return originalTypeLayout;
// TODO: actually adjust the element type, and create all the required bits and