summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Roelofs <jonathan_roelofs@apple.com>2023-05-16 13:43:34 -0700
committerJon Roelofs <jonathan_roelofs@apple.com>2023-05-17 10:59:31 -0700
commite9a17453ee559a114d1c40ef939ee4478999a76e (patch)
tree31ada4c7cf7b50f0df65cda1acd22fd225d422fa
parent17f3cbe3af8186762061ab93e86345227bc7ba1c (diff)
downloadllvm-e9a17453ee559a114d1c40ef939ee4478999a76e.tar.gz
builtins: fix a -Wshorten-64-to-32 in gcc_personality_v0
Differential revision: https://reviews.llvm.org/D150720
-rw-r--r--compiler-rt/lib/builtins/gcc_personality_v0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/gcc_personality_v0.c b/compiler-rt/lib/builtins/gcc_personality_v0.c
index 58fd7ceb58c3..ef63a5fb8347 100644
--- a/compiler-rt/lib/builtins/gcc_personality_v0.c
+++ b/compiler-rt/lib/builtins/gcc_personality_v0.c
@@ -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;