Drop unnecessary const from return types (NFC)

Identified with readability-const-return-type.
This commit is contained in:
Kazu Hirata 2021-12-28 10:01:39 -08:00
parent 1e7bd93ff2
commit e6e7bdd6a9
2 changed files with 3 additions and 3 deletions

View File

@ -438,7 +438,7 @@ static T extractMaskValue(T KeyPath) {
}(EXTRACTOR(KEYPATH)); \
}
static const StringRef GetInputKindName(InputKind IK);
static StringRef GetInputKindName(InputKind IK);
static bool FixupInvocation(CompilerInvocation &Invocation,
DiagnosticsEngine &Diags, const ArgList &Args,
@ -3291,7 +3291,7 @@ static bool IsInputCompatibleWithStandard(InputKind IK,
}
/// Get language name for given input kind.
static const StringRef GetInputKindName(InputKind IK) {
static StringRef GetInputKindName(InputKind IK) {
switch (IK.getLanguage()) {
case Language::C:
return "C";

View File

@ -432,7 +432,7 @@ public:
}
// Return the label of the basic block reached on a transition on \p S.
const StringRef getSuccessorLabel(StringRef S) const {
StringRef getSuccessorLabel(StringRef S) const {
assert(Successors.count(S) == 1 && "Expected to find successor.");
return Successors.find(S)->getValue();
}