summaryrefslogtreecommitdiff
path: root/source/slang/ir-restructure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/ir-restructure.cpp')
-rw-r--r--source/slang/ir-restructure.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/ir-restructure.cpp b/source/slang/ir-restructure.cpp
index d8d3fe7c9..47a0d1fee 100644
--- a/source/slang/ir-restructure.cpp
+++ b/source/slang/ir-restructure.cpp
@@ -514,14 +514,14 @@ namespace Slang
caseIndex++;
RefPtr<SwitchRegion::Case> currentCase = new SwitchRegion::Case();
- switchRegion->cases.Add(currentCase);
+ switchRegion->cases.add(currentCase);
// Add the case value for this case, and any
// others that share the same label
//
for(;;)
{
- currentCase->values.Add(caseVal);
+ currentCase->values.add(caseVal);
// Are there any more `case`s left?
//
@@ -586,7 +586,7 @@ namespace Slang
if(!defaultLabelHandled)
{
RefPtr<SwitchRegion::Case> defaultCase = new SwitchRegion::Case();
- switchRegion->cases.Add(defaultCase);
+ switchRegion->cases.add(defaultCase);
// Note: we use `null` instead of `breakLabel` as the end block
// here, to ensure that the `default` region will end with an