summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-union.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-union.cpp')
-rw-r--r--source/slang/slang-ir-union.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-union.cpp b/source/slang/slang-ir-union.cpp
index e39fae262..d456cebee 100644
--- a/source/slang/slang-ir-union.cpp
+++ b/source/slang/slang-ir-union.cpp
@@ -670,7 +670,7 @@ struct DesugarUnionTypesContext
//
auto layoutDecoration = type->findDecoration<IRLayoutDecoration>();
SLANG_ASSERT(layoutDecoration);
- auto layout = layoutDecoration->getLayout();
+ auto layout = layoutDecoration->getIRLayout()->getASTLayout();
SLANG_ASSERT(layout);
auto taggedUnionTypeLayout = as<TaggedUnionTypeLayout>(layout);
SLANG_ASSERT(taggedUnionTypeLayout);