Return StringRef instead of a naked char*; NFC

llvm-svn: 262989
This commit is contained in:
Sanjoy Das 2016-03-09 02:34:19 +00:00
parent f13900f8ac
commit 2eac48de9e
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class InductiveRangeCheck {
RANGE_CHECK_UNKNOWN = (unsigned)-1
};
static const char *rangeCheckKindToStr(RangeCheckKind);
static StringRef rangeCheckKindToStr(RangeCheckKind);
const SCEV *Offset;
const SCEV *Scale;
@ -228,7 +228,7 @@ INITIALIZE_PASS_DEPENDENCY(LoopPass)
INITIALIZE_PASS_END(InductiveRangeCheckElimination, "irce",
"Inductive range check elimination", false, false)
const char *InductiveRangeCheck::rangeCheckKindToStr(
StringRef InductiveRangeCheck::rangeCheckKindToStr(
InductiveRangeCheck::RangeCheckKind RCK) {
switch (RCK) {
case InductiveRangeCheck::RANGE_CHECK_UNKNOWN: