The conversion to bool is fine here, no need to check isType.
authorEric Christopher <echristo@gmail.com>
Thu, 8 Aug 2013 07:40:42 +0000 (07:40 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 8 Aug 2013 07:40:42 +0000 (07:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187964 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

index 2937b9019c2c43961b4c1698db4f59e9ca5cd445..113f8293ad8ff333562b71af564757762ffc2a0e 100644 (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);
     }