File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,8 @@ define void @foo(i8 %v) {
362
362
llvm::Function *LLVMF = &*M->getFunction (" foo" );
363
363
sandboxir::Context Ctx (C);
364
364
auto *F = Ctx.createFunction (LLVMF);
365
- #ifndef NDEBUG
366
- EXPECT_DEATH (sandboxir::Region::createRegionsFromMD (*F, *TTI), " .*Gap*" );
367
- #endif
365
+ EXPECT_DEBUG_DEATH (sandboxir::Region::createRegionsFromMD (*F, *TTI),
366
+ " .*Gap*" );
368
367
}
369
368
370
369
// Check that we get an assertion failure if we try to set the same index more
@@ -383,9 +382,8 @@ define void @foo(i8 %v) {
383
382
llvm::Function *LLVMF = &*M->getFunction (" foo" );
384
383
sandboxir::Context Ctx (C);
385
384
auto *F = Ctx.createFunction (LLVMF);
386
- #ifndef NDEBUG
387
- EXPECT_DEATH (sandboxir::Region::createRegionsFromMD (*F, *TTI), " .*already.*" );
388
- #endif // NDEBUG
385
+ EXPECT_DEBUG_DEATH (sandboxir::Region::createRegionsFromMD (*F, *TTI),
386
+ " .*already.*" );
389
387
}
390
388
391
389
TEST_F (RegionTest, AuxRoundTrip) {
You can’t perform that action at this time.
0 commit comments