From: Eric Christopher Date: Thu, 8 Aug 2013 07:40:42 +0000 (+0000) Subject: The conversion to bool is fine here, no need to check isType. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=37c107b9b57aab9a13cde0d1db41b66565941f9d;p=oota-llvm.git The conversion to bool is fine here, no need to check isType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187964 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 2937b9019c2..113f8293ad8 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -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); }