Skip to content

Commit 6fecae9

Browse files
committed
[FieldSensitivePL] Silenced warning.
``` ../include/swift/SIL/FieldSensitivePrunedLiveness.h:531:54: warning: 'hasValue' is deprecated: Use has_value instead. [-Wdeprecated-declarations] bool isInitialized() const { return numBitsToTrack.hasValue(); } ^~~~~~~~ has_value ```
1 parent 91ee824 commit 6fecae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/FieldSensitivePrunedLiveness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ class FieldSensitivePrunedLiveBlocks {
518518
assert(!discoveredBlocks || discoveredBlocks->empty());
519519
}
520520

521-
bool isInitialized() const { return numBitsToTrack.hasValue(); }
521+
bool isInitialized() const { return numBitsToTrack.has_value(); }
522522

523523
unsigned getNumBitsToTrack() const { return *numBitsToTrack; }
524524

0 commit comments

Comments
 (0)