[UBSAN] Remove invalid assert added with #87709

This commit is contained in:
Vitaly Buka 2024-04-04 14:51:48 -07:00
parent 697dd93ae3
commit aa6ba23235

View File

@ -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);