[libcxx-commits] [compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

Anatoly Trosinenko via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 30 06:40:42 PDT 2025


================
@@ -63,10 +67,11 @@ class DwarfInstructions {
                                   pint_t cfa, const RegisterLocation &savedReg);
 
   static pint_t getCFA(A &addressSpace, const PrologInfo &prolog,
-                       const R &registers) {
-    if (prolog.cfaRegister != 0)
-      return (pint_t)((sint_t)registers.getRegister((int)prolog.cfaRegister) +
-             prolog.cfaRegisterOffset);
+                       R &registers) {
----------------
atrosinenko wrote:

Could be kept `const R&`?

https://github.com/llvm/llvm-project/pull/143230


More information about the libcxx-commits mailing list