From 210fe3de3d0306969c7e0612c64eca41ded5c423 Mon Sep 17 00:00:00 2001 From: yangliping Date: Tue, 9 Sep 2025 16:40:10 +0800 Subject: [PATCH] fix warning Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/ICX5HV?from=project-issue Signed-off-by: yangliping --- ecmascript/compiler/aot_compiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ecmascript/compiler/aot_compiler.cpp b/ecmascript/compiler/aot_compiler.cpp index 7cc17b5008..8712cf5e6b 100644 --- a/ecmascript/compiler/aot_compiler.cpp +++ b/ecmascript/compiler/aot_compiler.cpp @@ -113,8 +113,10 @@ int Main(const int argc, const char **argv) AotCompilerStats compilerStats; std::string bundleName = ""; + std::string pgoDir = ""; if (cPreprocessor.GetMainPkgArgs()) { bundleName = cPreprocessor.GetMainPkgArgs()->GetBundleName(); + pgoDir = cPreprocessor.GetMainPkgArgs()->GetPgoDir(); } compilerStats.SetBundleName(bundleName); compilerStats.SetAotFilePath(cOptions.outputFileName_); @@ -212,7 +214,7 @@ int Main(const int argc, const char **argv) log.Print(); if (runtimeOptions.IsTargetCompilerMode()) { compilerStats.PrintCompilerStatsLog(); - compilerStats.SendDataPartitionSysEvent(cPreprocessor.GetMainPkgArgs()->GetPgoDir()); + compilerStats.SendDataPartitionSysEvent(pgoDir); } } -- Gitee