[PATCH] D132304: [ADT] Deprecate Any::hasValue
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 09:34:57 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGabb6271d809b: [ADT] Deprecate Any::hasValue (authored by kazu).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132304/new/
https://reviews.llvm.org/D132304
Files:
llvm/include/llvm/ADT/Any.h
Index: llvm/include/llvm/ADT/Any.h
===================================================================
--- llvm/include/llvm/ADT/Any.h
+++ llvm/include/llvm/ADT/Any.h
@@ -100,6 +100,7 @@
return *this;
}
+ LLVM_DEPRECATED("Use has_value instead.", "has_value")
bool hasValue() const { return !!Storage; }
bool has_value() const { return !!Storage; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132304.454230.patch
Type: text/x-patch
Size: 368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220820/097a7cff/attachment.bin>
More information about the llvm-commits
mailing list