File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ namespace interp {
2929using APInt = llvm::APInt;
3030using APSInt = llvm::APSInt;
3131template <unsigned Bits, bool Signed> class Integral ;
32- class Boolean ;
3332
3433template <bool Signed> class IntegralAP final {
3534private:
@@ -104,10 +103,6 @@ template <bool Signed> class IntegralAP final {
104103 assert (Copy.isSigned () == Signed);
105104 return IntegralAP<Signed>(Copy);
106105 }
107- static IntegralAP from (const Boolean &B) {
108- assert (false );
109- return IntegralAP::zero ();
110- }
111106
112107 static IntegralAP zero () {
113108 assert (false );
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ namespace i128 {
4242 // ref-note {{outside the range}}
4343 constexpr int128_t Two = (int128_t )1 << 1ul ;
4444 static_assert (Two == 2 , " " );
45+ static_assert (Two, " " );
46+ constexpr bool CastedToBool = Two;
47+ static_assert (CastedToBool, " " );
4548
4649 constexpr uint128_t AllOnes = ~static_cast <uint128_t >(0 );
4750 static_assert (AllOnes == UINT128_MAX, " " );
You can’t perform that action at this time.
0 commit comments