summaryrefslogtreecommitdiff
path: root/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
commit37c107b9b57aab9a13cde0d1db41b66565941f9d (patch)
treec17ea9a79a2b7461a6e953ccf7162131029eebf4 /lib
parentdc1363f5af47542a602c80e726749bc06d8ef3f8 (diff)
downloadllvm-37c107b9b57aab9a13cde0d1db41b66565941f9d.tar.gz
llvm-37c107b9b57aab9a13cde0d1db41b66565941f9d.tar.bz2
llvm-37c107b9b57aab9a13cde0d1db41b66565941f9d.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 2937b9019c..113f8293ad 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);
}