diff options
| author | 2017-01-16 15:08:56 +0000 | |
|---|---|---|
| committer | 2017-01-16 16:54:01 +0000 | |
| commit | cd9f85746d56db194252f9319ba3a018a362014c (patch) | |
| tree | b982c74863db88e98e1b7aa5494a3989109de011 /compiler/optimizing | |
| parent | a48d74a59af68d45e5c9b9273c2017ae2470d58a (diff) | |
Fix braino in RTP.
We should use the `compare` instruction, and not the `check`
instruction.
Test: test-art-host, 633-checker-rtp-getclass
bug: 34273618
Change-Id: I388ec92974202da3a318921097a14462f3f3f8b6
Diffstat (limited to 'compiler/optimizing')
| -rw-r--r-- | compiler/optimizing/reference_type_propagation.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/reference_type_propagation.cc b/compiler/optimizing/reference_type_propagation.cc index f8a4469712..4d3b081596 100644 --- a/compiler/optimizing/reference_type_propagation.cc +++ b/compiler/optimizing/reference_type_propagation.cc @@ -295,13 +295,13 @@ static void BoundTypeForClassCheck(HInstruction* check) { } if (check->IsIf()) { - HBasicBlock* trueBlock = check->IsEqual() + HBasicBlock* trueBlock = compare->IsEqual() ? check->AsIf()->IfTrueSuccessor() : check->AsIf()->IfFalseSuccessor(); BoundTypeIn(receiver, trueBlock, /* start_instruction */ nullptr, class_rti); } else { DCHECK(check->IsDeoptimize()); - if (check->IsEqual()) { + if (compare->IsEqual()) { BoundTypeIn(receiver, check->GetBlock(), check, class_rti); } } |