Skip to content

Commit 95f984f

Browse files
committed
ValueTracking: Don't use unnecessary null checked dyn_cast
1 parent 8cb642b commit 95f984f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,7 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
45014501

45024502
assert(Depth <= MaxAnalysisRecursionDepth && "Limit Search Depth");
45034503

4504-
if (auto *CFP = dyn_cast_or_null<ConstantFP>(V)) {
4504+
if (auto *CFP = dyn_cast<ConstantFP>(V)) {
45054505
Known.KnownFPClasses = CFP->getValueAPF().classify();
45064506
Known.SignBit = CFP->isNegative();
45074507
return;

0 commit comments

Comments
 (0)