IRGeneratorForStatements: Handle internal calls to functions from specific base contracts as static calls rather than calls via pointers

This commit is contained in:
Kamil Śliwak
2020-04-24 15:00:16 +02:00
parent 397ea18b78
commit 56a85d6cb3
3 changed files with 52 additions and 20 deletions
@@ -34,6 +34,8 @@ contract Child is Base {
BaseBase.init(c, d);
}
}
// ====
// compileViaYul: also
// ----
// x() -> 0
// y() -> 0
@@ -18,6 +18,8 @@ contract Child is Base {
Base.init(c, d);
}
}
// ====
// compileViaYul: also
// ----
// x() -> 0
// y() -> 0