projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor: Simplify boolean conditional return statements in llvm/lib/DebugInfo/DWARF
[oota-llvm.git]
/
lib
/
DebugInfo
/
DWARF
/
DWARFUnit.cpp
diff --git
a/lib/DebugInfo/DWARF/DWARFUnit.cpp
b/lib/DebugInfo/DWARF/DWARFUnit.cpp
index 63a9985555140a132abf16c22fd8b5282292aaef..348476d72b603a01971850fb2cc90e6685ab2f40 100644
(file)
--- a/
lib/DebugInfo/DWARF/DWARFUnit.cpp
+++ b/
lib/DebugInfo/DWARF/DWARFUnit.cpp
@@
-79,10
+79,7
@@
bool DWARFUnit::extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) {
return false;
Abbrevs = Abbrev->getAbbreviationDeclarationSet(AbbrOffset);
- if (Abbrevs == nullptr)
- return false;
-
- return true;
+ return Abbrevs != nullptr;
}
bool DWARFUnit::extract(DataExtractor debug_info, uint32_t *offset_ptr) {