diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp index b1454bc67a7e..1adc0aafdc24 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp @@ -1177,7 +1177,7 @@ TEST(DWARFDebugInfo, TestEmptyChildren) { " Values:\n"; auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata)); - EXPECT_TRUE((bool)ErrOrSections); + ASSERT_TRUE((bool)ErrOrSections); auto &DebugSections = *ErrOrSections;