File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -9316,17 +9316,11 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
93169316 llvm::Function *fn = module ->getFunction (" _lpython_get_argc" );
93179317 if (!fn) {
93189318 llvm::FunctionType *function_type = llvm::FunctionType::get (
9319- llvm::Type::getVoidTy (context), {
9320- llvm::Type::getInt32Ty (context)->getPointerTo ()
9321- }, false );
9319+ llvm::Type::getInt32Ty (context), {}, false );
93229320 fn = llvm::Function::Create (function_type,
93239321 llvm::Function::ExternalLinkage, " _lpython_get_argc" , *module );
93249322 }
9325- llvm::AllocaInst *result = builder->CreateAlloca (
9326- llvm::Type::getInt32Ty (context), nullptr );
9327- std::vector<llvm::Value*> args = {result};
9328- builder->CreateCall (fn, args);
9329- tmp = CreateLoad (result);
9323+ tmp = builder->CreateCall (fn, {});
93309324 return ;
93319325 } else if (func_name == " achar" ) {
93329326 // TODO: make achar just StringChr
You can’t perform that action at this time.
0 commit comments