8292583: Comment for ciArrayKlass::make is wrong

Reviewed-by: thartmann, rcastanedalo
This commit is contained in:
Damon Fenacci 2023-02-27 07:33:13 +00:00 committed by Tobias Hartmann
parent 2613b94f28
commit db217c9ad6

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -94,9 +94,9 @@ bool ciArrayKlass::is_leaf_type() {
// ------------------------------------------------------------------
// ciArrayKlass::base_element_type
// ciArrayKlass::make
//
// What type is obtained when this array is indexed as many times as possible?
// Make an array klass of the specified element type.
ciArrayKlass* ciArrayKlass::make(ciType* element_type) {
if (element_type->is_primitive_type()) {
return ciTypeArrayKlass::make(element_type->basic_type());