[lint] Fix il_arm.cc.

TEST=CQ
Change-Id: I94c3ac70e7595ec6191dbba9b3502cefe57a04d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200821
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
This commit is contained in:
Clement Skau 2021-05-20 07:35:50 +00:00 committed by commit-bot@chromium.org
parent 7817468526
commit c3ba9ac204

View file

@ -6438,12 +6438,13 @@ void CheckArrayBoundInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
__ b(deopt, CS);
}
}
static bool CanBePairOfImmediateOperands(Value* value,
compiler::Operand* low,
compiler::Operand* high) {
int64_t imm;
if (value->BindsToConstant() && compiler::HasIntegerValue(value->BoundConstant(), &imm)) {
if (value->BindsToConstant() &&
compiler::HasIntegerValue(value->BoundConstant(), &imm)) {
return compiler::Operand::CanHold(Utils::Low32Bits(imm), low) &&
compiler::Operand::CanHold(Utils::High32Bits(imm), high);
}