forked from OSchip/llvm-project
The conversion to bool is fine here, no need to check isType.
llvm-svn: 187964
This commit is contained in:
parent
0df08e2ff9
commit
49e17b2049
|
@ -940,7 +940,7 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
|||
}
|
||||
}
|
||||
DIType DTy = CTy.getTypeDerivedFrom();
|
||||
if (DTy.isType()) {
|
||||
if (DTy) {
|
||||
addType(&Buffer, DTy);
|
||||
addUInt(&Buffer, dwarf::DW_AT_enum_class, dwarf::DW_FORM_flag, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue