Skip to content

Commit cd1f94c

Browse files
[ADT] Add [[nodiscard]] to makeQuiet (NFC) (#161776)
FWIW, this [[nodiscard]] led to the discovery of #161625.
1 parent 853760b commit cd1f94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/APFloat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ class APFloat : public APFloatBase {
13131313

13141314
/// Assuming this is an IEEE-754 NaN value, quiet its signaling bit.
13151315
/// This preserves the sign and payload bits.
1316-
APFloat makeQuiet() const {
1316+
[[nodiscard]] APFloat makeQuiet() const {
13171317
APFloat Result(*this);
13181318
Result.getIEEE().makeQuiet();
13191319
return Result;

0 commit comments

Comments
 (0)