[compiler-rt] e9a1745 - builtins: fix a -Wshorten-64-to-32 in gcc_personality_v0
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 10:59:58 PDT 2023
Author: Jon Roelofs
Date: 2023-05-17T10:59:31-07:00
New Revision: e9a17453ee559a114d1c40ef939ee4478999a76e
URL: https://github.com/llvm/llvm-project/commit/e9a17453ee559a114d1c40ef939ee4478999a76e
DIFF: https://github.com/llvm/llvm-project/commit/e9a17453ee559a114d1c40ef939ee4478999a76e.diff
LOG: builtins: fix a -Wshorten-64-to-32 in gcc_personality_v0
Differential revision: https://reviews.llvm.org/D150720
Added:
Modified:
compiler-rt/lib/builtins/gcc_personality_v0.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/gcc_personality_v0.c b/compiler-rt/lib/builtins/gcc_personality_v0.c
index 58fd7ceb58c35..ef63a5fb83472 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;
More information about the llvm-commits
mailing list