[libunwind] 6716e20 - [libunwind] Remove -Wsign-conversion warning

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Fri May 13 10:25:33 PDT 2022


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


        


More information about the cfe-commits mailing list