summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-03-09 02:34:19 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-03-09 02:34:19 +0000
commit2eac48de9e4d0f951925dba8c4c7d2427590e61b (patch)
treed571e94b05f71c07d956a8cc8b95772571a9eab9 /llvm/lib
parentf13900f8acfbe385cb82ac0833338d396e1878e5 (diff)
downloadbcm5719-llvm-2eac48de9e4d0f951925dba8c4c7d2427590e61b.tar.gz
bcm5719-llvm-2eac48de9e4d0f951925dba8c4c7d2427590e61b.zip
Return StringRef instead of a naked char*; NFC
llvm-svn: 262989
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
index ce8bfe61fe3..48ec2de5e56 100644
--- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
@@ -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:
OpenPOWER on IntegriCloud