forked from OSchip/llvm-project
[RS4GC] Use StringRef; NFC
Spotted during random inspection. llvm-svn: 273512
This commit is contained in:
parent
b435735259
commit
5dae789a16
|
@ -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) &&
|
||||
|
|
Loading…
Reference in New Issue