Skip to content

Commit 168c205

Browse files
committed
LLVM: Move the bind(c) check up
1 parent fba58a7 commit 168c205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4032,6 +4032,8 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
40324032
throw CodeGenError("Function LFortran interfaces not implemented yet");
40334033
} else if (s->m_abi == ASR::abiType::Interactive) {
40344034
h = get_hash((ASR::asr_t*)s);
4035+
} else if (s->m_abi == ASR::abiType::BindC) {
4036+
h = get_hash((ASR::asr_t*)s);
40354037
} else if (s->m_abi == ASR::abiType::Intrinsic || intrinsic_function) {
40364038
std::string func_name = s->m_name;
40374039
if( fname2arg_type.find(func_name) != fname2arg_type.end() ) {
@@ -4049,8 +4051,6 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
40494051
h = get_hash((ASR::asr_t*)s);
40504052
}
40514053
}
4052-
} else if (s->m_abi == ASR::abiType::BindC) {
4053-
h = get_hash((ASR::asr_t*)s);
40544054
} else {
40554055
throw CodeGenError("ABI type not implemented yet.");
40564056
}

0 commit comments

Comments
 (0)