Skip to content

Commit 0d51eda

Browse files
natanelh-mobileyeIcohedron
authored andcommitted
[nfc] Ignoring unused values (llvm#125695)
trying to avoid `unused variable` warning under gcc7
1 parent 19f1b3f commit 0d51eda

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/include/llvm/ADT/StableHashing.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ inline stable_hash stable_hash_combine(stable_hash A, stable_hash B,
5454
// maintain closeness to the original name across different builds.
5555
inline StringRef get_stable_name(StringRef Name) {
5656
// Return the part after ".content." that represents contents.
57-
auto [P0, S0] = Name.rsplit(".content.");
57+
StringRef S0 = Name.rsplit(".content.").second;
5858
if (!S0.empty())
5959
return S0;
6060

6161
// Ignore these suffixes.
62-
auto [P1, S1] = Name.rsplit(".llvm.");
63-
auto [P2, S2] = P1.rsplit(".__uniq.");
64-
return P2;
62+
StringRef P1 = Name.rsplit(".llvm.").first;
63+
return P1.rsplit(".__uniq.").first;
6564
}
6665

6766
// Generates a consistent hash value for a given input name across different

0 commit comments

Comments
 (0)