[llvm] aa6ba23 - [UBSAN] Remove invalid assert added with #87709
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 14:52:42 PDT 2024
Author: Vitaly Buka
Date: 2024-04-04T14:52:31-07:00
New Revision: aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2
URL: https://github.com/llvm/llvm-project/commit/aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2
DIFF: https://github.com/llvm/llvm-project/commit/aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2.diff
LOG: [UBSAN] Remove invalid assert added with #87709
Added:
Modified:
llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp b/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
index 436ccdc7205bad..b281468cb84ee1 100644
--- a/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp
@@ -41,7 +41,6 @@ static bool removeUbsanTraps(Function &F, const BlockFrequencyInfo &BFI,
auto ShouldRemove = [&](bool IsHot) {
if (!RandomRate.getNumOccurrences())
return IsHot;
- assert(HotPercentileCutoff.getNumOccurrences());
if (!Rng)
Rng = F.getParent()->createRNG(F.getName());
std::bernoulli_distribution D(RandomRate);
More information about the llvm-commits
mailing list