@@ -237,31 +237,6 @@ TEST(LowLevelTypeTest, ChangeNumElements) {
237
237
EXPECT_EQ (NXV2P0, P0.changeElementCount (ElementCount::getScalable (2 )));
238
238
}
239
239
240
- #ifdef GTEST_HAS_DEATH_TEST
241
- #ifndef NDEBUG
242
-
243
- // Invalid to directly change the element size for pointers.
244
- TEST (LowLevelTypeTest, ChangeElementTypeDeath) {
245
- const LLT S32 = LLT::scalar (32 );
246
- const LLT S64 = LLT::scalar (64 );
247
- const LLT P0 = LLT::pointer (0 , 32 );
248
- const LLT V2P0 = LLT::fixed_vector (2 , P0);
249
-
250
- EXPECT_DEATH (P0.changeElementType (S64),
251
- " invalid to directly change element type for pointers" );
252
- EXPECT_DEATH (V2P0.changeElementType (S64),
253
- " invalid to directly change element type for pointers" );
254
-
255
- // Make sure this still fails even without a change in type.
256
- EXPECT_DEATH (P0.changeElementType (S32),
257
- " invalid to directly change element type for pointers" );
258
- EXPECT_DEATH (V2P0.changeElementType (S32),
259
- " invalid to directly change element type for pointers" );
260
- }
261
-
262
- #endif
263
- #endif
264
-
265
240
TEST (LowLevelTypeTest, Pointer) {
266
241
LLVMContext C;
267
242
DataLayout DL (" p64:64:64-p127:512:512:512-p16777215:65528:8" );
0 commit comments