File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -1252,31 +1252,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
12521252 } else {
12531253 ptr_loads = 1 ;
12541254 }
1255- if (ASR::is_a<ASR::CPtr_t>(*ASRUtils::expr_type (x.m_args [i]))) {
1256- bool is_argument = false ;
1257- ASR::expr_t *var = x.m_args [i];
1258- if (is_a<ASR::Var_t>(*var)) {
1259- ASR::symbol_t *var_sym = ASR::down_cast<ASR::Var_t>(var)
1260- ->m_v ;
1261- if (is_a<ASR::Variable_t>(*var_sym)) {
1262- ASR::Variable_t *v = down_cast<ASR::Variable_t>(var_sym);
1263- if (v->m_intent == intent_local ||
1264- v->m_intent == intent_return_var ||
1265- !v->m_intent ) {
1266- is_argument = false ;
1267- } else {
1268- is_argument = true ;
1269- }
1270- }
1271- }
1272- if (is_argument) {
1273- ptr_loads = 0 ;
1274- } else {
1275- ptr_loads = 1 ;
1276- }
1277- } else {
1278- ptr_loads = 1 ;
1279- }
12801255 this ->visit_expr (*x.m_args [i]);
12811256 llvm::Value* item = tmp;
12821257 llvm::Value* pos = llvm::ConstantInt::get (context, llvm::APInt (32 , i));
You can’t perform that action at this time.
0 commit comments