diff options
author | 2023-04-06 10:29:19 +0000 | |
---|---|---|
committer | 2023-04-25 17:02:47 +0000 | |
commit | f2eef5f0e445f3dd439f91ee8db5fdfa2129b892 (patch) | |
tree | 519b828880ce20c98746c895e5994c1c882d20ca /compiler/optimizing/graph_checker.cc | |
parent | b5fcab944b3786f27ab6b698685109bfc7f785fd (diff) |
Use `down_cast<>` in `HInstruction::As##type()`.
One overload used `down_cast<>` and the other used
`static_cast<>`, so make it consistent.
Also avoid some unnecessary `As##type()` calls and make some
style adjustments.
Test: m test-art-host-gtest
Change-Id: I1f368a0c21647b44fffb7361dbb92d8a09fbe904
Diffstat (limited to 'compiler/optimizing/graph_checker.cc')
-rw-r--r-- | compiler/optimizing/graph_checker.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc index 190b362145..596049f369 100644 --- a/compiler/optimizing/graph_checker.cc +++ b/compiler/optimizing/graph_checker.cc @@ -944,8 +944,7 @@ static bool IsSameSizeConstant(const HInstruction* insn1, const HInstruction* in static bool IsConstantEquivalent(const HInstruction* insn1, const HInstruction* insn2, BitVector* visited) { - if (insn1->IsPhi() && - insn1->AsPhi()->IsVRegEquivalentOf(insn2)) { + if (insn1->IsPhi() && insn1->AsPhi()->IsVRegEquivalentOf(insn2)) { HConstInputsRef insn1_inputs = insn1->GetInputs(); HConstInputsRef insn2_inputs = insn2->GetInputs(); if (insn1_inputs.size() != insn2_inputs.size()) { |