!4182 [weekly0530] Fix compilation issue on ArkUI-X

Merge pull request !4182 from Pan Zhenyu/weekly0530
This commit is contained in:
openharmony_ci 2023-06-05 06:44:36 +00:00 committed by Gitee
commit 2235a437c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -196,7 +196,7 @@ void PGOMethodTypeSet::Merge(NativeAreaAllocator *allocator, const PGOMethodType
allocator->Delete(iter);
}
layoutDescInfos_.clear();
for (const auto typeInfo : typeInfoSet_) {
for (const auto& typeInfo : typeInfoSet_) {
if (typeInfo.GetType().IsHeapObject()) {
auto taggedType = typeInfo.GetType().GetTaggedType();
auto constructor = JSFunction::Cast(JSTaggedValue(taggedType).GetTaggedObject());