summaryrefslogtreecommitdiffstats
path: root/source/slang/bytecode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/bytecode.cpp')
-rw-r--r--source/slang/bytecode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/bytecode.cpp b/source/slang/bytecode.cpp
index 854d9bf34..8d8d609b9 100644
--- a/source/slang/bytecode.cpp
+++ b/source/slang/bytecode.cpp
@@ -956,7 +956,7 @@ BytecodeGenerationPtr<BCModule> generateBytecodeForModule(
// for the module, where the registers represent the
// values being computed at the global scope.
UInt symbolCount = 0;
- for( auto gv : irModule->globalValues )
+ for( auto gv = irModule->getFirstGlobalValue(); gv; gv = gv->getNextValue() )
{
Int globalID = Int(symbolCount++);
@@ -975,7 +975,7 @@ BytecodeGenerationPtr<BCModule> generateBytecodeForModule(
bcModule->symbolCount = symbolCount;
bcModule->symbols = bcSymbols;
- for( auto gv : irModule->globalValues )
+ for( auto gv = irModule->getFirstGlobalValue(); gv; gv = gv->getNextValue() )
{
UInt symbolIndex = *context->mapInstToLocalID.TryGetValue(gv);