[llvm] bac85ab - Revert "[LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef"

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 05:06:53 PDT 2020


Author: Benjamin Kramer
Date: 2020-04-16T14:06:39+02:00
New Revision: bac85ab3b55d02f0a1e824712f185af42cd1ea04

URL: https://github.com/llvm/llvm-project/commit/bac85ab3b55d02f0a1e824712f185af42cd1ea04
DIFF: https://github.com/llvm/llvm-project/commit/bac85ab3b55d02f0a1e824712f185af42cd1ea04.diff

LOG: Revert "[LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef"

This reverts commit 83d5131d87a6f929b21b54e3fc0f9636ff64c808. Spams
llvm/ADT/StringRef.h:57:11: warning: unknown attribute 'Pointer' ignored [-Wunknown-attributes]

Added: 
    

Modified: 
    llvm/include/llvm/ADT/StringRef.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index 337efd641135..ad31517a1ea7 100644
--- a/llvm/include/llvm/ADT/StringRef.h
+++ b/llvm/include/llvm/ADT/StringRef.h
@@ -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);
 


        


More information about the llvm-commits mailing list