File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ template <bool Signed> class IntegralAP final {
100
100
return IntegralAP (0 );
101
101
}
102
102
103
+ // FIXME: This can't be static if the bitwidth depends on V.
103
104
static constexpr unsigned bitWidth () { return 128 ; }
104
105
105
106
APSInt toAPSInt (unsigned Bits = 0 ) const { return V; }
@@ -117,7 +118,11 @@ template <bool Signed> class IntegralAP final {
117
118
118
119
void print (llvm::raw_ostream &OS) const { OS << V; }
119
120
120
- IntegralAP truncate (unsigned bitWidth) const { return V; }
121
+ IntegralAP truncate (unsigned bitWidth) const {
122
+ assert (false );
123
+ return V;
124
+ }
125
+
121
126
IntegralAP<false > toUnsigned () const {
122
127
APSInt Copy = V;
123
128
Copy.setIsSigned (false );
@@ -129,11 +134,13 @@ template <bool Signed> class IntegralAP final {
129
134
}
130
135
131
136
static bool increment (IntegralAP A, IntegralAP *R) {
137
+ assert (false );
132
138
*R = IntegralAP (A.V + 1 );
133
139
return false ;
134
140
}
135
141
136
142
static bool decrement (IntegralAP A, IntegralAP *R) {
143
+ assert (false );
137
144
*R = IntegralAP (A.V - 1 );
138
145
return false ;
139
146
}
You can’t perform that action at this time.
0 commit comments