File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -318,15 +318,9 @@ class ReplaceFunctionCallWithSubroutineCallVisitor:
318
318
}
319
319
320
320
void visit_Assignment (const ASR::Assignment_t &x) {
321
- bool is_target_struct_member_array_and_value_array =
322
- (ASR::is_a<ASR::StructInstanceMember_t>(*x.m_target ) &&
323
- ASRUtils::is_array (ASRUtils::expr_type (x.m_value )) &&
324
- ASRUtils::is_array (ASRUtils::expr_type (x.m_target )) &&
325
- !ASR::is_a<ASR::FunctionCall_t>(*x.m_value ));
326
321
if ( (ASR::is_a<ASR::Pointer_t>(*ASRUtils::expr_type (x.m_target )) &&
327
322
ASR::is_a<ASR::GetPointer_t>(*x.m_value )) ||
328
- (ASR::is_a<ASR::ArrayConstant_t>(*x.m_value )) ||
329
- is_target_struct_member_array_and_value_array) { // TODO: fix for StructInstanceMember targets
323
+ (ASR::is_a<ASR::ArrayConstant_t>(*x.m_value ))) {
330
324
return ;
331
325
}
332
326
You can’t perform that action at this time.
0 commit comments