8258075: Use auto variable declarations for enum iteration

Reviewed-by: jrose, ccheung
This commit is contained in:
Ioi Lam 2020-12-16 19:39:24 +00:00
parent 330ce86123
commit 59f4c4aad5
6 changed files with 16 additions and 16 deletions

View file

@ -5302,7 +5302,7 @@ static void check_methods_for_intrinsics(const InstanceKlass* ik,
// The check is potentially expensive, therefore it is available
// only in debug builds.
for (vmIntrinsicID id : EnumRange<vmIntrinsicID>{}) {
for (auto id : EnumRange<vmIntrinsicID>{}) {
if (vmIntrinsics::_compiledLambdaForm == id) {
// The _compiledLamdbdaForm intrinsic is a special marker for bytecode
// generated for the JVM from a LambdaForm and therefore no method