OSDN Git Service

[RS4GC] Use StringRef; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 22 Jun 2016 23:32:46 +0000 (23:32 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 22 Jun 2016 23:32:46 +0000 (23:32 +0000)
Spotted during random inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273512 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index fe15d17..cb05a60 100644 (file)
@@ -1017,11 +1017,10 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) {
     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) &&