[PATCH] D66443: [LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef
Matthias Gehre via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 23:26:31 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG83d5131d87a6: [LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef (authored by mgehre).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66443/new/
https://reviews.llvm.org/D66443
Files:
llvm/include/llvm/ADT/StringRef.h
Index: llvm/include/llvm/ADT/StringRef.h
===================================================================
--- llvm/include/llvm/ADT/StringRef.h
+++ llvm/include/llvm/ADT/StringRef.h
@@ -54,7 +54,7 @@
/// situations where the character data resides in some other buffer, whose
/// lifetime extends past that of the StringRef. For this reason, it is not in
/// general safe to store a StringRef.
- class StringRef {
+ class [[gsl::Pointer]] StringRef {
public:
static const size_t npos = ~size_t(0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66443.257966.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/03301e3b/attachment.bin>
More information about the llvm-commits
mailing list