summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-inline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-inline.cpp')
-rw-r--r--source/slang/slang-ir-inline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir-inline.cpp b/source/slang/slang-ir-inline.cpp
index db4bb50a8..e878c56f7 100644
--- a/source/slang/slang-ir-inline.cpp
+++ b/source/slang/slang-ir-inline.cpp
@@ -573,7 +573,7 @@ struct InliningPassBase
// Insert a branch into the cloned first block at the end of `callerBlock`.
builder->setInsertInto(callerBlock);
- auto mainBlock = as<IRBlock>(env->mapOldValToNew[callee->getFirstBlock()].getValue());
+ auto mainBlock = as<IRBlock>(env->mapOldValToNew.getValue(callee->getFirstBlock()));
auto newBranch = builder->emitLoop(mainBlock, afterBlock, mainBlock);
_setSourceLoc(newBranch, call, callSite);
@@ -581,7 +581,7 @@ struct InliningPassBase
bool isFirstBlock = true;
for (auto calleeBlock : callee->getBlocks())
{
- auto clonedBlock = env->mapOldValToNew[calleeBlock].getValue();
+ auto clonedBlock = env->mapOldValToNew.getValue(calleeBlock);
builder->setInsertInto(clonedBlock);
// We will loop over the instructions of the each block,
// and clone each of them appropriately.