Commit e78fd46 1 parent 4bf7816 commit e78fd46 Copy full SHA for e78fd46
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ class ShortLoopOptimizer : public ValueNumberingVisitor {
281
281
}
282
282
void kill_array (ValueType* type) {
283
283
current_map ()->kill_array (type);
284
- BasicType basic_type = as_BasicType (type); assert (basic_type >= 0 && basic_type < T_VOID, " Invalid type" );
284
+ BasicType basic_type = as_BasicType (type); assert (basic_type < T_VOID, " Invalid type" );
285
285
_has_indexed_store[basic_type] = true ;
286
286
}
287
287
@@ -298,12 +298,12 @@ class ShortLoopOptimizer : public ValueNumberingVisitor {
298
298
}
299
299
300
300
bool has_field_store (BasicType type) {
301
- assert (type >= 0 && type < T_VOID, " Invalid type" );
301
+ assert (type < T_VOID, " Invalid type" );
302
302
return _has_field_store[type];
303
303
}
304
304
305
305
bool has_indexed_store (BasicType type) {
306
- assert (type >= 0 && type < T_VOID, " Invalid type" );
306
+ assert (type < T_VOID, " Invalid type" );
307
307
return _has_indexed_store[type];
308
308
}
309
309
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ class arrayOopDesc : public oopDesc {
138
138
// overflow. We also need to make sure that this will not overflow a size_t on
139
139
// 32 bit platforms when we convert it to a byte size.
140
140
static int32_t max_array_length (BasicType type) {
141
- assert (type >= 0 && type < T_CONFLICT, " wrong type" );
141
+ assert (type < T_CONFLICT, " wrong type" );
142
142
assert (type2aelembytes (type) != 0 , " wrong type" );
143
143
144
144
const size_t max_element_words_per_size_t =
You can’t perform that action at this time.
0 commit comments