File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ namespace interp {
29
29
using APInt = llvm::APInt;
30
30
using APSInt = llvm::APSInt;
31
31
template <unsigned Bits, bool Signed> class Integral ;
32
- class Boolean ;
33
32
34
33
template <bool Signed> class IntegralAP final {
35
34
private:
@@ -104,10 +103,6 @@ template <bool Signed> class IntegralAP final {
104
103
assert (Copy.isSigned () == Signed);
105
104
return IntegralAP<Signed>(Copy);
106
105
}
107
- static IntegralAP from (const Boolean &B) {
108
- assert (false );
109
- return IntegralAP::zero ();
110
- }
111
106
112
107
static IntegralAP zero () {
113
108
assert (false );
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ namespace i128 {
42
42
// ref-note {{outside the range}}
43
43
constexpr int128_t Two = (int128_t )1 << 1ul ;
44
44
static_assert (Two == 2 , " " );
45
+ static_assert (Two, " " );
46
+ constexpr bool CastedToBool = Two;
47
+ static_assert (CastedToBool, " " );
45
48
46
49
constexpr uint128_t AllOnes = ~static_cast <uint128_t >(0 );
47
50
static_assert (AllOnes == UINT128_MAX, " " );
You can’t perform that action at this time.
0 commit comments