diff options
author | Eric Christopher <echristo@gmail.com> | 2016-06-23 00:42:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-06-23 00:42:00 +0000 |
commit | d3d9cbf127b8470944e882ffc7b25a42727bf624 (patch) | |
tree | e53fc1bbfc7b04496aacc9b186ae46b4c6ae725c /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | |
parent | f7e3609f77936044893fc2a69981d6ba212e3728 (diff) | |
download | bcm5719-llvm-d3d9cbf127b8470944e882ffc7b25a42727bf624.tar.gz bcm5719-llvm-d3d9cbf127b8470944e882ffc7b25a42727bf624.zip |
Fix unused variable warning by folding the temporary into the debug statement.
llvm-svn: 273523
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |