Skip to content

Commit 3dc6114

Browse files
vitalybukagithub-actions[bot]
authored andcommitted
Automerge: Revert "[YAML] Init local var not set by some branches" (#123238)
Reverts llvm/llvm-project#123137 It's a bug according to llvm/llvm-project#123137 (review)
2 parents 2ebdfa3 + 51f6438 commit 3dc6114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ObjectYAML/ELFYAML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ static bool isInteger(StringRef Val) {
15881588

15891589
void MappingTraits<std::unique_ptr<ELFYAML::Chunk>>::mapping(
15901590
IO &IO, std::unique_ptr<ELFYAML::Chunk> &Section) {
1591-
ELFYAML::ELF_SHT Type = ELF::ET_NONE;
1591+
ELFYAML::ELF_SHT Type;
15921592
StringRef TypeStr;
15931593
if (IO.outputting()) {
15941594
if (auto *S = dyn_cast<ELFYAML::Section>(Section.get()))

0 commit comments

Comments
 (0)