[RS4GC] Use StringRef; NFC

Spotted during random inspection.

llvm-svn: 273512
This commit is contained in:
Sanjoy Das 2016-06-22 23:32:46 +00:00
parent b435735259
commit 5dae789a16
1 changed files with 3 additions and 4 deletions

View 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) &&