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);
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to