From eeb0d638ac342970f9d5591fe65470e356728349 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 23 Jun 2016 00:42:00 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.11.0