Skip to content

Commit fb0a7c8

Browse files
committed
[clang][Interp][NFC] Make IntegralAP::V private
1 parent aa6ee03 commit fb0a7c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/Interp/IntegralAP.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class Boolean;
3333

3434
template <bool Signed> class IntegralAP final {
3535
private:
36+
friend IntegralAP<!Signed>;
37+
APSInt V;
38+
3639
template <typename T> static T truncateCast(const APSInt &V) {
3740
return std::is_signed_v<T> ? V.trunc(sizeof(T) * 8).getSExtValue()
3841
: V.trunc(sizeof(T) * 8).getZExtValue();
3942
}
4043

41-
public:
42-
APSInt V;
43-
4444
public:
4545
using AsUnsigned = IntegralAP<false>;
4646

0 commit comments

Comments
 (0)