projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc1363f
)
The conversion to bool is fine here, no need to check isType.
author
Eric Christopher
<echristo@gmail.com>
Thu, 8 Aug 2013 07:40:42 +0000
(07:40 +0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 2937b9019c2c43961b4c1698db4f59e9ca5cd445..113f8293ad8ff333562b71af564757762ffc2a0e 100644
(file)
--- 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);
}