[llvm] r187964 - The conversion to bool is fine here, no need to check isType.
Eric Christopher
echristo at gmail.com
Thu Aug 8 00:40:43 PDT 2013
Author: echristo
Date: Thu Aug 8 02:40:42 2013
New Revision: 187964
URL: http://llvm.org/viewvc/llvm-project?rev=187964&view=rev
Log:
The conversion to bool is fine here, no need to check isType.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=187964&r1=187963&r2=187964&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Thu Aug 8 02:40:42 2013
@@ -940,7 +940,7 @@ void CompileUnit::constructTypeDIE(DIE &
}
}
DIType DTy = CTy.getTypeDerivedFrom();
- if (DTy.isType()) {
+ if (DTy) {
addType(&Buffer, DTy);
addUInt(&Buffer, dwarf::DW_AT_enum_class, dwarf::DW_FORM_flag, 1);
}
More information about the llvm-commits
mailing list