From: Eric Christopher Date: Thu, 23 Jun 2016 00:42:00 +0000 (+0000) Subject: Fix unused variable warning by folding the temporary into the debug statement. X-Git-Tag: android-x86-7.1-r4~31372 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eeb0d638ac342970f9d5591fe65470e356728349;p=android-x86%2Fexternal-llvm.git Fix unused variable warning by folding the temporary into the debug statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273523 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index cb05a6022d4..e85423ff6b6 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1017,9 +1017,9 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { assert(BDV && base); assert(!isKnownBaseResult(BDV) && "why did it get added?"); - StringRef FromStr = cache.count(BDV) ? cache[BDV]->getName() : "none"; DEBUG(dbgs() << "Updating base value cache" - << " for: " << BDV->getName() << " from: " << FromStr + << " for: " << BDV->getName() << " from: " + << (cache.count(BDV) ? cache[BDV]->getName().str() : "none") << " to: " << base->getName() << "\n"); if (cache.count(BDV)) {