Skip to content

Commit 95e2a66

Browse files
kazutakahirataakadutta
authored andcommitted
[ADT] Add [[nodiscard]] to makeQuiet (NFC) (llvm#161776)
FWIW, this [[nodiscard]] led to the discovery of llvm#161625.
1 parent 9139929 commit 95e2a66

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)