From d3d9cbf127b8470944e882ffc7b25a42727bf624 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 23 Jun 2016 00:42:00 +0000 Subject: Fix unused variable warning by folding the temporary into the debug statement. llvm-svn: 273523 --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp') diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index cb05a6022d4..e85423ff6b6 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/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)) { -- cgit v1.2.3