diff options
author | Vitaly Buka <vitalybuka@google.com> | 2024-04-04 14:51:48 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2024-04-04 14:52:31 -0700 |
commit | aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2 (patch) | |
tree | 5d871552a57cb029ae58ef23186bd8b475d19e6c /llvm | |
parent | 697dd93ae30f489e5bcdac74c2ef2d876e3ca064 (diff) | |
download | llvm-aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2.zip llvm-aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2.tar.gz llvm-aa6ba23235b4418d528fe8df4d1cd6d2ad50ceb2.tar.bz2 |
[UBSAN] Remove invalid assert added with #87709
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp b/llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp index 436ccdc..b281468 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); |