mirror of
https://github.com/irmen/prog8.git
synced 2025-07-25 11:24:15 +00:00
ir: adding register usage inspections
fix compiler problems with untrimmed inlined asm, and when only a single return statement is present in a subroutine
This commit is contained in:
@@ -38,6 +38,8 @@ class Inliner(val program: Program): AstWalker() {
|
||||
is Return -> {
|
||||
if(stmt.value is NumericLiteral)
|
||||
true
|
||||
else if(stmt.value==null)
|
||||
true
|
||||
else if (stmt.value is IdentifierReference) {
|
||||
makeFullyScoped(stmt.value as IdentifierReference)
|
||||
true
|
||||
|
Reference in New Issue
Block a user