Skip to content

Commit 60b7ceb

Browse files
committed
Assign values that are left unassigned
1 parent 7a59990 commit 60b7ceb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Support/ELFAttrParserExtended.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ Error ELFExtendedAttrParser::parse(ArrayRef<uint8_t> Section,
142142
uint64_t ValueInt = 0;
143143
std::string ValueStr = "";
144144
if (Type) { // type==1 --> ntbs
145-
StringRef Value = De.getCStrRef(Cursor);
145+
ValueStr = De.getCStrRef(Cursor);
146146
if (Sw)
147-
Sw->printString(TagName, Value);
147+
Sw->printString(TagName, ValueStr);
148148
} else { // type==0 --> uleb128
149-
uint64_t Value = De.getULEB128(Cursor);
149+
uint64_t ValueInt = De.getULEB128(Cursor);
150150
if (Sw)
151-
Sw->printNumber(TagName, Value);
151+
Sw->printNumber(TagName, ValueInt);
152152
}
153153

154154
// populate data structure

0 commit comments

Comments
 (0)