Author: Louis Dionne
Date: 2022-05-13T13:25:28-04:00
New Revision: 6716e2055ddeac304f47adc5ae39086381016ba7

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

LOG: [libunwind] Remove -Wsign-conversion warning

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