Skip to content

Commit 91e6bd2

Browse files
authored
Update asr_to_llvm.cpp
1 parent 6573353 commit 91e6bd2

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)