Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d58d006

Browse files
committed
fixed bug
1 parent 6ebf5d8 commit d58d006

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
252252
return builder0.CreateAlloca(type, size, Name);
253253
}
254254

255-
llvm::AllocaInst* CreateAlloca(llvm::Type* type,
256-
llvm::Value* size=nullptr, const std::string& Name="") {
257-
llvm::BasicBlock &entry_block = builder->GetInsertBlock()->getParent()->getEntryBlock();
258-
llvm::IRBuilder<> builder0(context);
259-
builder0.SetInsertPoint(&entry_block, entry_block.getFirstInsertionPt());
260-
return builder0.CreateAlloca(type, size, Name);
261-
}
262-
263255
llvm::Value* CreateLoad(llvm::Value *x) {
264256
return LLVM::CreateLoad(*builder, x);
265257
}

0 commit comments

Comments
 (0)