The conversion to bool is fine here, no need to check isType.

llvm-svn: 187964
This commit is contained in:
Eric Christopher 2013-08-08 07:40:42 +00:00
parent 0df08e2ff9
commit 49e17b2049
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}