Skip to content

Commit aa6ba23

Browse files
committed
[UBSAN] Remove invalid assert added with #87709
1 parent 697dd93 commit aa6ba23

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ static bool removeUbsanTraps(Function &F, const BlockFrequencyInfo &BFI,
4141
auto ShouldRemove = [&](bool IsHot) {
4242
if (!RandomRate.getNumOccurrences())
4343
return IsHot;
44-
assert(HotPercentileCutoff.getNumOccurrences());
4544
if (!Rng)
4645
Rng = F.getParent()->createRNG(F.getName());
4746
std::bernoulli_distribution D(RandomRate);

0 commit comments

Comments
 (0)