We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb6886 commit 3f276efCopy full SHA for 3f276ef
src/engine/internal/llvm/llvmcodebuilder.cpp
@@ -1246,6 +1246,7 @@ std::shared_ptr<ExecutableCode> LLVMCodeBuilder::finalize()
1246
}
1247
1248
case LLVMInstruction::Type::Stop: {
1249
+ freeScopeHeap();
1250
m_builder.CreateBr(endBranch);
1251
llvm::BasicBlock *nextBranch = llvm::BasicBlock::Create(m_llvmCtx, "", m_function);
1252
m_builder.SetInsertPoint(nextBranch);
@@ -1309,11 +1310,11 @@ std::shared_ptr<ExecutableCode> LLVMCodeBuilder::finalize()
1309
1310
1311
1312
1313
+ assert(m_stringHeap.size() == 1);
1314
1315
1316
1317
m_builder.SetInsertPoint(endBranch);
- assert(m_stringHeap.size() == 1);
- freeScopeHeap();
1318
syncVariables(targetVariables);
1319
1320
// End and verify the function
0 commit comments