File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
245
245
}
246
246
247
247
llvm::AllocaInst* CreateAlloca (llvm::Type* type,
248
- llvm::Value* size= nullptr , const std::string& Name= " " ) {
248
+ llvm::Value* size, const std::string& Name) {
249
249
llvm::BasicBlock &entry_block = builder->GetInsertBlock ()->getParent ()->getEntryBlock ();
250
250
llvm::IRBuilder<> builder0 (context);
251
251
builder0.SetInsertPoint (&entry_block, entry_block.getFirstInsertionPt ());
@@ -5545,7 +5545,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
5545
5545
this ->visit_expr_wrapper (x.m_test , true );
5546
5546
llvm::Value *cond = tmp;
5547
5547
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 , " " );
5549
5549
llvm_utils->create_if_else (cond, [&]() {
5550
5550
this ->visit_expr_wrapper (x.m_body , true );
5551
5551
builder->CreateStore (tmp, ifexp_res);
You can’t perform that action at this time.
0 commit comments