Skip to content

Commit 7ff7531

Browse files
committed
Apply comments
1 parent 9158ca8 commit 7ff7531

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/tools/sycl-post-link/ModuleSplitter.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,10 @@ class FunctionsCategorizer {
689689

690690
private:
691691
struct Rule {
692+
using TupleOfThreeStringRef = std::tuple<StringRef, StringRef, StringRef>;
693+
692694
private:
693-
std::variant<StringRef, std::tuple<StringRef, StringRef, StringRef>,
695+
std::variant<StringRef, TupleOfThreeStringRef,
694696
std::function<std::string(Function *)>>
695697
Storage;
696698

@@ -761,7 +763,7 @@ std::string FunctionsCategorizer::computeCategoryFor(Function *F) const {
761763
} break;
762764

763765
case Rule::RKind::K_FlagMetadata: {
764-
std::tuple<StringRef, StringRef, StringRef> Data =
766+
Rule::TupleOfThreeStringRef Data =
765767
R.getStorage<Rule::RKind::K_FlagMetadata>();
766768
if (F->hasMetadata(std::get<0>(Data)))
767769
Result += std::get<1>(Data);
@@ -799,7 +801,7 @@ std::string FunctionsCategorizer::computeCategoryFor(Function *F) const {
799801
} break;
800802

801803
case Rule::RKind::K_FlagAttribute: {
802-
std::tuple<StringRef, StringRef, StringRef> Data =
804+
Rule::TupleOfThreeStringRef Data =
803805
R.getStorage<Rule::RKind::K_FlagAttribute>();
804806
if (F->hasFnAttribute(std::get<0>(Data)))
805807
Result += std::get<1>(Data);

0 commit comments

Comments
 (0)