Skip to content

Commit c616569

Browse files
committed
format
Created using spr 1.3.4
2 parents 1ab88d1 + 4e87446 commit c616569

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lld/Common/Strings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ static bool isExact(StringRef Pattern) {
2424
Pattern.ends_with("\"");
2525
}
2626

27-
SingleStringMatcher::SingleStringMatcher(StringRef Pattern) : ExactMatch(isExact(Pattern)) {
27+
SingleStringMatcher::SingleStringMatcher(StringRef Pattern)
28+
: ExactMatch(isExact(Pattern)) {
2829
if (ExactMatch) {
2930
ExactPattern = Pattern.substr(1, Pattern.size() - 2);
3031
} else {

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;
1591+
ELFYAML::ELF_SHT Type = ELF::ET_NONE;
15921592
StringRef TypeStr;
15931593
if (IO.outputting()) {
15941594
if (auto *S = dyn_cast<ELFYAML::Section>(Section.get()))

0 commit comments

Comments
 (0)