From 6fecae9c5a67385d061a7198e6d2e22506252f10 Mon Sep 17 00:00:00 2001 From: Nate Chandler Date: Sat, 17 Jun 2023 17:24:42 -0700 Subject: [PATCH] [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 ``` --- include/swift/SIL/FieldSensitivePrunedLiveness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/swift/SIL/FieldSensitivePrunedLiveness.h b/include/swift/SIL/FieldSensitivePrunedLiveness.h index 456ba6c387bee..c3ef2806d8a83 100644 --- a/include/swift/SIL/FieldSensitivePrunedLiveness.h +++ b/include/swift/SIL/FieldSensitivePrunedLiveness.h @@ -518,7 +518,7 @@ class FieldSensitivePrunedLiveBlocks { assert(!discoveredBlocks || discoveredBlocks->empty()); } - bool isInitialized() const { return numBitsToTrack.hasValue(); } + bool isInitialized() const { return numBitsToTrack.has_value(); } unsigned getNumBitsToTrack() const { return *numBitsToTrack; }