builtins: fix a -Wshorten-64-to-32 in gcc_personality_v0
authorJon Roelofs <jonathan_roelofs@apple.com>
Tue, 16 May 2023 20:43:34 +0000 (13:43 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Wed, 17 May 2023 17:59:31 +0000 (10:59 -0700)
Differential revision: https://reviews.llvm.org/D150720

compiler-rt/lib/builtins/gcc_personality_v0.c

index 58fd7ce..ef63a5f 100644 (file)
@@ -219,7 +219,7 @@ COMPILER_RT_ABI _Unwind_Reason_Code __gcc_personality_v0(
   }
   // Walk call-site table looking for range that includes current PC.
   uint8_t callSiteEncoding = *lsda++;
-  uint32_t callSiteTableLength = readULEB128(&lsda);
+  size_t callSiteTableLength = readULEB128(&lsda);
   const uint8_t *callSiteTableStart = lsda;
   const uint8_t *callSiteTableEnd = callSiteTableStart + callSiteTableLength;
   const uint8_t *p = callSiteTableStart;