Skip to content

Commit a867163

Browse files
committed
[ConstantFPRange] Fix comments. NFC.
1 parent ed81b0d commit a867163

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/IR/ConstantFPRange.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ ConstantFPRange ConstantFPRange::add(const ConstantFPRange &Other) const {
493493
return ConstantFPRange(NewLower, NewUpper, ResMayBeQNaN,
494494
/*MayBeSNaN=*/false);
495495
}
496-
// If both HasNegInf and HasPosInf are true, the non-NaN part is empty.
496+
// If both HasNegInf and HasPosInf are false, the non-NaN part is empty.
497+
// We just return the canonical form [+inf, -inf] for the empty non-NaN set.
497498
return ConstantFPRange(
498499
APFloat::getInf(Lower.getSemantics(), /*Negative=*/HasNegInf),
499500
APFloat::getInf(Upper.getSemantics(), /*Negative=*/!HasPosInf),

0 commit comments

Comments
 (0)