summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2019-07-16 06:53:06 +0000
committerIgor Kudrin <ikudrin@accesssoftek.com>2019-07-16 06:53:06 +0000
commit860f7ec05871d36b519ba31295670963f2fd3f95 (patch)
tree07d027e1c0b7cf90a7a21157d0d0ce3f4b3c4e04 /llvm/lib
parentd0ac1888aab490589788bd51a9f44f7745dc5819 (diff)
downloadbcm5719-llvm-860f7ec05871d36b519ba31295670963f2fd3f95.tar.gz
bcm5719-llvm-860f7ec05871d36b519ba31295670963f2fd3f95.zip
[DWARF] Simplify DWARFAttribute. NFC.
The first argument in the constructor was ignored, and the remaining arguments were always passed as their defaults. Differential Revision: https://reviews.llvm.org/D64407 llvm-svn: 366188
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDie.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
index 62128429836..d638dc4239f 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -663,7 +663,7 @@ iterator_range<DWARFDie::attribute_iterator> DWARFDie::attributes() const {
}
DWARFDie::attribute_iterator::attribute_iterator(DWARFDie D, bool End)
- : Die(D), AttrValue(0), Index(0) {
+ : Die(D), Index(0) {
auto AbbrDecl = Die.getAbbreviationDeclarationPtr();
assert(AbbrDecl && "Must have abbreviation declaration");
if (End) {
@@ -693,7 +693,7 @@ void DWARFDie::attribute_iterator::updateForIndex(
AttrValue.ByteSize = ParseOffset - AttrValue.Offset;
} else {
assert(Index == NumAttrs && "Indexes should be [0, NumAttrs) only");
- AttrValue.clear();
+ AttrValue = {};
}
}
OpenPOWER on IntegriCloud