Revert "[LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef"
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 16 Apr 2020 12:05:29 +0000 (14:05 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 16 Apr 2020 12:06:39 +0000 (14:06 +0200)
This reverts commit 83d5131d87a6f929b21b54e3fc0f9636ff64c808. Spams
llvm/ADT/StringRef.h:57:11: warning: unknown attribute 'Pointer' ignored [-Wunknown-attributes]

llvm/include/llvm/ADT/StringRef.h

index 337efd6..ad31517 100644 (file)
@@ -54,7 +54,7 @@ namespace llvm {
   /// 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 [[gsl::Pointer]] StringRef {
+  class StringRef {
   public:
     static const size_t npos = ~size_t(0);