Skip to content

Commit 343a444

Browse files
committed
Fix test compilation error
1 parent c88f01f commit 343a444

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/hotspot/jtreg/compiler/jvmci/common/CodeInstallerTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
2626
import jdk.vm.ci.code.Architecture;
2727
import jdk.vm.ci.code.CodeCacheProvider;
2828
import jdk.vm.ci.code.Register;
29-
import jdk.vm.ci.code.RegisterArray;
3029
import jdk.vm.ci.code.StackSlot;
3130
import jdk.vm.ci.code.site.DataPatch;
3231
import jdk.vm.ci.code.site.Site;
@@ -118,8 +117,7 @@ protected InstalledCode installEmptyCode(Site[] sites,
118117

119118
protected Register getRegister(PlatformKind kind, int index) {
120119
int idx = index;
121-
RegisterArray allRegs = arch.getAvailableValueRegisters();
122-
for (Register reg : allRegs) {
120+
for (Register reg : arch.getAvailableValueRegisters()) {
123121
if (arch.canStoreValue(reg.getRegisterCategory(), kind)) {
124122
if (idx-- == 0) {
125123
return reg;

0 commit comments

Comments
 (0)