[clang] 1402c43 - [clang][Interp][NFC] Remove duplicate private specifier

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 9 06:49:55 PDT 2023


Author: Timm Bäder
Date: 2023-07-09T15:49:32+02:00
New Revision: 1402c4313820da984805b70e1bb6661217706499

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

LOG: [clang][Interp][NFC] Remove duplicate private specifier

Added: 
    

Modified: 
    clang/lib/AST/Interp/Source.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Source.h b/clang/lib/AST/Interp/Source.h
index 99ffce34c12fa6..a836eb09db7f86 100644
--- a/clang/lib/AST/Interp/Source.h
+++ b/clang/lib/AST/Interp/Source.h
@@ -56,12 +56,9 @@ class CodePtr final {
   }
 
 private:
+  friend class Function;
   /// Constructor used by Function to generate pointers.
   CodePtr(const char *Ptr) : Ptr(Ptr) {}
-
-private:
-  friend class Function;
-
   /// Pointer into the code owned by a function.
   const char *Ptr;
 };


        


More information about the cfe-commits mailing list