Skip to content

Commit 442d026

Browse files
committed
wip
1 parent 67e0580 commit 442d026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
245245
}
246246

247247
llvm::AllocaInst* CreateAlloca(llvm::Type* type,
248-
llvm::Value* size=nullptr, const std::string& Name="") {
248+
llvm::Value* size, const std::string& Name) {
249249
llvm::BasicBlock &entry_block = builder->GetInsertBlock()->getParent()->getEntryBlock();
250250
llvm::IRBuilder<> builder0(context);
251251
builder0.SetInsertPoint(&entry_block, entry_block.getFirstInsertionPt());
@@ -5545,7 +5545,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
55455545
this->visit_expr_wrapper(x.m_test, true);
55465546
llvm::Value *cond = tmp;
55475547
llvm::Type* _type = llvm_utils->get_type_from_ttype_t_util(x.m_type, module.get());
5548-
llvm::Value* ifexp_res = CreateAlloca(_type);
5548+
llvm::Value* ifexp_res = CreateAlloca(_type, nullptr, "");
55495549
llvm_utils->create_if_else(cond, [&]() {
55505550
this->visit_expr_wrapper(x.m_body, true);
55515551
builder->CreateStore(tmp, ifexp_res);

0 commit comments

Comments
 (0)