commit | 37c107b9b57aab9a13cde0d1db41b66565941f9d | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@gmail.com> | Thu Aug 08 07:40:42 2013 +0000 |
committer | Eric Christopher <echristo@gmail.com> | Thu Aug 08 07:40:42 2013 +0000 |
tree | c17ea9a79a2b7461a6e953ccf7162131029eebf4 | |
parent | dc1363f5af47542a602c80e726749bc06d8ef3f8 [diff] |
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 2937b90..113f829 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -940,7 +940,7 @@ } } DIType DTy = CTy.getTypeDerivedFrom(); - if (DTy.isType()) { + if (DTy) { addType(&Buffer, DTy); addUInt(&Buffer, dwarf::DW_AT_enum_class, dwarf::DW_FORM_flag, 1); }