From 497320b513928edcd22006f88c722a78c64fae04 Mon Sep 17 00:00:00 2001 From: fye Date: Wed, 29 Jun 2022 15:34:36 -0700 Subject: [PATCH] debug: enable loc expr for arg passed on reg --- src/mapleall/maple_be/src/cg/aarch64/aarch64_memlayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_memlayout.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_memlayout.cpp index 3d0fbd96d6..aeb0fbae70 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_memlayout.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_memlayout.cpp @@ -280,7 +280,7 @@ void AArch64MemLayout::LayoutFormalParams() { SetSymAllocInfo(stIndex, *symLoc1); } } - if (cgFunc->GetCG()->GetCGOptions().WithDwarf() && (symLoc->GetMemSegment() != nullptr)) { + if (cgFunc->GetCG()->GetCGOptions().WithDwarf()) { cgFunc->AddDIESymbolLocation(sym, symLoc); } } -- Gitee