Skip to content

Commit f4f8714

Browse files
committed
Add missed cases
1 parent bf7e4dc commit f4f8714

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,8 +2665,9 @@ void RewriteInstance::readRelocations(const SectionRef &Section) {
26652665
return;
26662666
}
26672667
const bool SkipRelocs = StringSwitch<bool>(RelocatedSectionName)
2668-
.Cases(".plt", ".rela.plt", ".got.plt",
2669-
".eh_frame", ".gcc_except_table", true)
2668+
.Cases({".plt", ".rela.plt", ".got.plt",
2669+
".eh_frame", ".gcc_except_table"},
2670+
true)
26702671
.Default(false);
26712672
if (SkipRelocs) {
26722673
LLVM_DEBUG(

clang/unittests/Driver/MultilibBuilderTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ TEST(MultilibBuilderTest, SetConstruction2) {
9191
ASSERT_TRUE(MS.size() == 4);
9292
for (MultilibSet::const_iterator I = MS.begin(), E = MS.end(); I != E; ++I) {
9393
ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix())
94-
.Cases("", "/sof", "/el", "/sof/el", true)
94+
.Cases({"", "/sof", "/el", "/sof/el"}, true)
9595
.Default(false))
9696
<< "Multilib " << *I << " wasn't expected";
9797
ASSERT_TRUE(llvm::StringSwitch<bool>(I->gccSuffix())

0 commit comments

Comments
 (0)