Skip to content

Commit a1bd820

Browse files
committed
the actual_callsites value for inline functions can get negative; not sure why, but handle it gracefully
1 parent 335cd8f commit a1bd820

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Version 7.0.3
22
- Fixed .fpide search so file names are relative to the .fpide file
3+
- Made inline function expansion more robust
34

45
Version 7.0.2
56
- Avoid a crash if a .fpide file is not found

backends/asm/optimize_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5594,7 +5594,7 @@ ExpandInlines(IRList *irl)
55945594
change = 1;
55955595
} else {
55965596
non_inline_calls++;
5597-
if (f && FuncData(f)->actual_callsites == 0) {
5597+
if (f && FuncData(f)->actual_callsites <= 0) {
55985598
FuncData(f)->actual_callsites = 1;
55995599
}
56005600
}

0 commit comments

Comments
 (0)