Skip to content

Commit 81ca86b

Browse files
authored
Never inline BindC functions (#1709)
1 parent 57ebbc8 commit 81ca86b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libasr/pass/inline_function_calls.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ class InlineFunctionCallVisitor : public PassUtils::PassVisitor<InlineFunctionCa
346346
}
347347
}
348348

349+
// Never Inline BindC Function
350+
if(ASRUtils::get_FunctionType(func)->m_abi == ASR::abiType::BindC){
351+
return;
352+
}
353+
349354
if( success ) {
350355
// Set inlining_function to true so that we inline
351356
// only one function at a time.

0 commit comments

Comments
 (0)