Skip to content

Commit 85e4316

Browse files
committed
Set PassOptions.fast correctly for inline function calls pass
1 parent f3f61e5 commit 85e4316

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libasr/pass/pass_manager.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ namespace LCompilers {
101101
"do_loops",
102102
"forall",
103103
"select_case",
104+
"inline_function_calls",
104105
"unused_functions"
105106
};
106107

@@ -161,8 +162,10 @@ namespace LCompilers {
161162
void apply_passes(Allocator& al, LFortran::ASR::TranslationUnit_t* asr,
162163
PassOptions& pass_options) {
163164
if( !_user_defined_passes.empty() ) {
165+
pass_options.fast = true;
164166
_apply_passes(al, asr, _user_defined_passes, pass_options);
165167
} else if( apply_default_passes ) {
168+
pass_options.fast = is_fast;
166169
if( is_fast ) {
167170
_apply_passes(al, asr, _with_optimization_passes, pass_options);
168171
} else {

0 commit comments

Comments
 (0)