[llvm] r273512 - [RS4GC] Use StringRef; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 16:32:46 PDT 2016
Author: sanjoy
Date: Wed Jun 22 18:32:46 2016
New Revision: 273512
URL: http://llvm.org/viewvc/llvm-project?rev=273512&view=rev
Log:
[RS4GC] Use StringRef; NFC
Spotted during random inspection.
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=273512&r1=273511&r2=273512&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Wed Jun 22 18:32:46 2016
@@ -1017,11 +1017,10 @@ static Value *findBasePointer(Value *I,
assert(BDV && base);
assert(!isKnownBaseResult(BDV) && "why did it get added?");
- std::string fromstr = cache.count(BDV) ? cache[BDV]->getName() : "none";
+ StringRef FromStr = cache.count(BDV) ? cache[BDV]->getName() : "none";
DEBUG(dbgs() << "Updating base value cache"
- << " for: " << BDV->getName()
- << " from: " << fromstr
- << " to: " << base->getName() << "\n");
+ << " for: " << BDV->getName() << " from: " << FromStr
+ << " to: " << base->getName() << "\n");
if (cache.count(BDV)) {
assert(isKnownBaseResult(base) &&
More information about the llvm-commits
mailing list