Skip to content

Commit 97b17c6

Browse files
committed
Fix unneeded if
1 parent 1e8da8b commit 97b17c6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/libasr/codegen/llvm_utils.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -622,12 +622,7 @@ namespace LCompilers {
622622

623623
if( type == nullptr ) {
624624
type = get_type_from_ttype_t_util(v_type->m_type, module, arg_m_abi)->getPointerTo();
625-
}
626-
}
627-
if( type != nullptr ) {
628-
}
629-
if( type != nullptr ) {
630-
break;
625+
} break;
631626
}
632627
case ASR::array_physical_typeType::FixedSizeArray: {
633628
type = llvm::ArrayType::get(get_el_type(v_type->m_type, module),

0 commit comments

Comments
 (0)