Author: Timm Bäder Date: 2023-10-03T06:31:03+02:00 New Revision: fb0a7c8589e1320de1bf48161a4995a0e5dc8b77
URL: https://github.com/llvm/llvm-project/commit/fb0a7c8589e1320de1bf48161a4995a0e5dc8b77 DIFF: https://github.com/llvm/llvm-project/commit/fb0a7c8589e1320de1bf48161a4995a0e5dc8b77.diff LOG: [clang][Interp][NFC] Make IntegralAP::V private Added: Modified: clang/lib/AST/Interp/IntegralAP.h Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/IntegralAP.h b/clang/lib/AST/Interp/IntegralAP.h index 0876d7fae958a54..a8df431bef11784 100644 --- a/clang/lib/AST/Interp/IntegralAP.h +++ b/clang/lib/AST/Interp/IntegralAP.h @@ -33,14 +33,14 @@ class Boolean; template <bool Signed> class IntegralAP final { private: + friend IntegralAP<!Signed>; + APSInt V; + template <typename T> static T truncateCast(const APSInt &V) { return std::is_signed_v<T> ? V.trunc(sizeof(T) * 8).getSExtValue() : V.trunc(sizeof(T) * 8).getZExtValue(); } -public: - APSInt V; - public: using AsUnsigned = IntegralAP<false>; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits