@@ -1590,7 +1590,7 @@ void LLVMCodeBuilder::createVariableWrite(Variable *variable, CompilerValue *val
15901590
15911591 if (m_loopScope >= 0 ) {
15921592 auto scope = m_loopScopes[m_loopScope];
1593- m_variablePtrs[variable].loopVariableWrites [scope].push_back (m_instructions.back ());
1593+ m_variablePtrs[variable].loopVariableWrites [scope. get () ].push_back (m_instructions.back ());
15941594 }
15951595
15961596 m_variableInstructions.push_back (m_instructions.back ());
@@ -1627,7 +1627,7 @@ void LLVMCodeBuilder::createListAppend(List *list, CompilerValue *item)
16271627
16281628 if (m_loopScope >= 0 ) {
16291629 auto scope = m_loopScopes[m_loopScope];
1630- m_listPtrs[list].loopListWrites [scope].push_back (m_instructions.back ());
1630+ m_listPtrs[list].loopListWrites [scope. get () ].push_back (m_instructions.back ());
16311631 }
16321632
16331633 m_listInstructions.push_back (m_instructions.back ());
@@ -1644,7 +1644,7 @@ void LLVMCodeBuilder::createListInsert(List *list, CompilerValue *index, Compile
16441644
16451645 if (m_loopScope >= 0 ) {
16461646 auto scope = m_loopScopes[m_loopScope];
1647- m_listPtrs[list].loopListWrites [scope].push_back (m_instructions.back ());
1647+ m_listPtrs[list].loopListWrites [scope. get () ].push_back (m_instructions.back ());
16481648 }
16491649
16501650 m_listInstructions.push_back (m_instructions.back ());
@@ -1661,7 +1661,7 @@ void LLVMCodeBuilder::createListReplace(List *list, CompilerValue *index, Compil
16611661
16621662 if (m_loopScope >= 0 ) {
16631663 auto scope = m_loopScopes[m_loopScope];
1664- m_listPtrs[list].loopListWrites [scope].push_back (m_instructions.back ());
1664+ m_listPtrs[list].loopListWrites [scope. get () ].push_back (m_instructions.back ());
16651665 }
16661666
16671667 m_listInstructions.push_back (m_instructions.back ());
@@ -1878,8 +1878,8 @@ void LLVMCodeBuilder::pushLoopScope(bool buildPhase)
18781878
18791879 if (m_loopScope >= 0 ) {
18801880 auto currentScope = m_loopScopes[m_loopScope];
1881- currentScope->childScopes .push_back (scope);
1882- scope->parentScope = currentScope;
1881+ currentScope->childScopes .push_back (scope. get () );
1882+ scope->parentScope = currentScope. get () ;
18831883 }
18841884
18851885 m_loopScope = m_loopScopes.size () - 1 ;
@@ -2511,9 +2511,9 @@ LLVMRegister *LLVMCodeBuilder::createOp(const LLVMInstruction &ins, Compiler::St
25112511 return nullptr ;
25122512}
25132513
2514- std::shared_ptr< LLVMLoopScope> LLVMCodeBuilder::currentLoopScope () const
2514+ LLVMLoopScope * LLVMCodeBuilder::currentLoopScope () const
25152515{
2516- return m_loopScope >= 0 ? m_loopScopes[m_loopScope] : nullptr ;
2516+ return m_loopScope >= 0 ? m_loopScopes[m_loopScope]. get () : nullptr ;
25172517}
25182518
25192519void LLVMCodeBuilder::createValueStore (LLVMRegister *reg, llvm::Value *targetPtr, Compiler::StaticType sourceType, Compiler::StaticType targetType)
0 commit comments