Fix regression introduced in 'Use AbstractValue in most of ssa'

Change-Id: Ie6159eb750ece1748ba1bb0b3c4f4d13a0dff9d6
Reviewed-on: https://dart-review.googlesource.com/58021
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
Johnni Winther 2018-06-01 21:18:03 +00:00 committed by commit-bot@chromium.org
parent 184df3aee0
commit e1549df93f

View file

@ -1282,7 +1282,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
}
// All intercepted classes extend `Interceptor`, so if the receiver can't
// be a class extending `Interceptor` then it can be called directly.
if (!_abstractValueDomain.canBeInterceptor(toStringType)) {
if (!_abstractValueDomain.canBeInterceptor(input.instructionType)) {
var inputs = <HInstruction>[input, input]; // [interceptor, receiver].
HInstruction result = new HInvokeDynamicMethod(
selector,