diff --git a/compiler/core/ETSemitter.cpp b/compiler/core/ETSemitter.cpp index 55ed6a148af079281afe614e4695dc0e542b67d9..9d80cc4cb739136f364afc43387b9e259a3c5e8f 100644 --- a/compiler/core/ETSemitter.cpp +++ b/compiler/core/ETSemitter.cpp @@ -381,8 +381,8 @@ void ETSEmitter::GenGlobalArrayRecord(checker::ETSArrayType *arrayType, checker: Program()->record_table.emplace(arrayRecord.name, std::move(arrayRecord)); std::stringstream ss2; - arrayType->ElementType()->ToAssemblerTypeWithRank(ss2); - panda::pandasm::Type atype_pa(ss2.str(), 1); + arrayType->ElementType()->ToAssemblerType(ss2); + panda::pandasm::Type atype_pa(ss2.str(), arrayType->Rank()); Program()->array_types.emplace(std::move(atype_pa)); }