forked from OSchip/llvm-project
Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
This commit is contained in:
parent
1e7bd93ff2
commit
e6e7bdd6a9
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue