[llvm] 5dd1421 - [NFC] Fix a compile warning of comparison of integers of different signs
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 06:06:31 PDT 2025
Author: Shilei Tian
Date: 2025-05-07T09:06:18-04:00
New Revision: 5dd1421da6c60700f2cb81a13fb5231bb965f0a6
URL: https://github.com/llvm/llvm-project/commit/5dd1421da6c60700f2cb81a13fb5231bb965f0a6
DIFF: https://github.com/llvm/llvm-project/commit/5dd1421da6c60700f2cb81a13fb5231bb965f0a6.diff
LOG: [NFC] Fix a compile warning of comparison of integers of different signs
Added:
Modified:
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
index fc1199f83937b..fa3f6d61616cc 100644
--- a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+++ b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
@@ -1096,7 +1096,7 @@ void ModuleSanitizerCoverage::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
if (Options.StackDepthCallbackMin) {
// In callback mode, only add call when stack depth reaches minimum.
- uint32_t EstimatedStackSize = 0;
+ int EstimatedStackSize = 0;
// If dynamic alloca found, always add call.
bool HasDynamicAlloc = false;
// Find an insertion point after last "alloca".
More information about the llvm-commits
mailing list