painless: Also remove boxing for reads and method calls

This commit is contained in:
Uwe Schindler 2016-05-15 19:49:25 +02:00
parent 604bcd9320
commit d221cd14d2
1 changed files with 5 additions and 0 deletions

View File

@ -242,6 +242,11 @@ public final class EChain extends AExpression {
private void analyzeRead() { private void analyzeRead() {
final ALink last = links.get(links.size() - 1); final ALink last = links.get(links.size() - 1);
// If the load node is a DEF node, we adapt its after type to use _this_ expected output type:
if (last instanceof ADefLink && this.expected != null) {
last.after = this.expected;
}
constant = last.string; constant = last.string;
statement = last.statement; statement = last.statement;
actual = last.after; actual = last.after;