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; };