summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 74679de96..84730c913 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -1570,6 +1570,10 @@ namespace Slang
parent = mergeCandidateParentsForHoistableInst(parent, operandParent);
}
+ if (inst->getFullType())
+ {
+ parent = mergeCandidateParentsForHoistableInst(parent, inst->getFullType()->getParent());
+ }
// We better have ended up with a parent to insert into,
// or else the invariants of our IR have been violated.