[libunwind] d3a6f57 - [libunwind] Remove -Wsign-conversion warning

Daniel Kiss via cfe-commits cfe-commits at lists.llvm.org
Thu May 19 00:41:53 PDT 2022


Author: Daniel Kiss
Date: 2022-05-19T09:41:42+02:00
New Revision: d3a6f5739130409602edac1b6588613c458d7321

URL: https://github.com/llvm/llvm-project/commit/d3a6f5739130409602edac1b6588613c458d7321
DIFF: https://github.com/llvm/llvm-project/commit/d3a6f5739130409602edac1b6588613c458d7321.diff

LOG: [libunwind] Remove -Wsign-conversion warning

Reland after dependent change reland.

Added: 
    

Modified: 
    libunwind/src/DwarfInstructions.hpp

Removed: 
    


################################################################################
diff  --git a/libunwind/src/DwarfInstructions.hpp b/libunwind/src/DwarfInstructions.hpp
index 865a489526047..a4fac5afa9b82 100644
--- a/libunwind/src/DwarfInstructions.hpp
+++ b/libunwind/src/DwarfInstructions.hpp
@@ -177,7 +177,7 @@ bool DwarfInstructions<A, R>::getRA_SIGN_STATE(A &addressSpace, R registers,
   pint_t raSignState;
   auto regloc = prolog.savedRegisters[UNW_AARCH64_RA_SIGN_STATE];
   if (regloc.location == CFI_Parser<A>::kRegisterUnused)
-    raSignState = regloc.value;
+    raSignState = static_cast<pint_t>(regloc.value);
   else
     raSignState = getSavedRegister(addressSpace, registers, cfa, regloc);
 


        


More information about the cfe-commits mailing list