summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-lower-tuple-types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-lower-tuple-types.cpp')
-rw-r--r--source/slang/slang-ir-lower-tuple-types.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/source/slang/slang-ir-lower-tuple-types.cpp b/source/slang/slang-ir-lower-tuple-types.cpp
index cadf77253..d9fd91d3d 100644
--- a/source/slang/slang-ir-lower-tuple-types.cpp
+++ b/source/slang/slang-ir-lower-tuple-types.cpp
@@ -149,21 +149,16 @@ namespace Slang
while (workList.getCount() != 0)
{
- // We will then iterate until our work list goes dry.
- //
- while (workList.getCount() != 0)
- {
- IRInst* inst = workList.getLast();
+ IRInst* inst = workList.getLast();
- workList.removeLast();
- workListSet.Remove(inst);
+ workList.removeLast();
+ workListSet.Remove(inst);
- processInst(inst);
+ processInst(inst);
- for (auto child = inst->getLastChild(); child; child = child->getPrevInst())
- {
- addToWorkList(child);
- }
+ for (auto child = inst->getLastChild(); child; child = child->getPrevInst())
+ {
+ addToWorkList(child);
}
}