@@ -1742,7 +1742,7 @@ void LLVMCodeBuilder::createVariableWrite(Variable *variable, CompilerValue *val
1742
1742
1743
1743
if (m_loopScope >= 0 ) {
1744
1744
auto scope = m_loopScopes[m_loopScope];
1745
- m_variablePtrs[variable].loopVariableWrites [scope.get ()].push_back (m_instructionList. back ());
1745
+ m_variablePtrs[variable].loopVariableWrites [scope.get ()].push_back (m_instructions. last ());
1746
1746
}
1747
1747
1748
1748
m_variableInstructions.push_back (m_instructions.last ());
@@ -1779,7 +1779,7 @@ void LLVMCodeBuilder::createListAppend(List *list, CompilerValue *item)
1779
1779
1780
1780
if (m_loopScope >= 0 ) {
1781
1781
auto scope = m_loopScopes[m_loopScope];
1782
- m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructionList. back ());
1782
+ m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructions. last ());
1783
1783
}
1784
1784
1785
1785
m_listInstructions.push_back (m_instructions.last ());
@@ -1796,7 +1796,7 @@ void LLVMCodeBuilder::createListInsert(List *list, CompilerValue *index, Compile
1796
1796
1797
1797
if (m_loopScope >= 0 ) {
1798
1798
auto scope = m_loopScopes[m_loopScope];
1799
- m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructionList. back ());
1799
+ m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructions. last ());
1800
1800
}
1801
1801
1802
1802
m_listInstructions.push_back (m_instructions.last ());
@@ -1813,7 +1813,7 @@ void LLVMCodeBuilder::createListReplace(List *list, CompilerValue *index, Compil
1813
1813
1814
1814
if (m_loopScope >= 0 ) {
1815
1815
auto scope = m_loopScopes[m_loopScope];
1816
- m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructionList. back ());
1816
+ m_listPtrs[list].loopListWrites [scope.get ()].push_back (m_instructions. last ());
1817
1817
}
1818
1818
1819
1819
m_listInstructions.push_back (m_instructions.last ());
@@ -2656,7 +2656,7 @@ bool LLVMCodeBuilder::isVarOrListTypeSafe(LLVMInstruction *ins, Compiler::Static
2656
2656
const auto &writes = it->second ;
2657
2657
2658
2658
for (auto w : writes)
2659
- lastWrites.push_back (w. get () );
2659
+ lastWrites.push_back (w);
2660
2660
}
2661
2661
2662
2662
if (checkScope->childScopes .empty ())
0 commit comments