summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-08 07:40:42 +0000
committerEric Christopher <echristo@gmail.com>2013-08-08 07:40:42 +0000
commit49e17b2049e2e25eb831828cba3d93ec4c629ab3 (patch)
tree69b8688f51fe39b25f9f45a22bc670ff42af590b /llvm/lib
parent0df08e2ff91200a1fff3a1b6be0be9e592b22b41 (diff)
downloadbcm5719-llvm-49e17b2049e2e25eb831828cba3d93ec4c629ab3.tar.gz
bcm5719-llvm-49e17b2049e2e25eb831828cba3d93ec4c629ab3.zip
The conversion to bool is fine here, no need to check isType.
llvm-svn: 187964
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 2937b9019c2..113f8293ad8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud