aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-05 19:05:20 +0000
committerChris Lattner <sabre@nondot.org>2005-03-05 19:05:20 +0000
commit7acff25f7f48ccbc8ca55032a59bfd4102ebed72 (patch)
treea863cace6a505b151e056c86addde152e90ffcfa /lib/Transforms/Utils/BasicBlockUtils.cpp
parent3267265d781822ca43ccc2816913fc65dfccfd6d (diff)
downloadexternal_llvm-7acff25f7f48ccbc8ca55032a59bfd4102ebed72.zip
external_llvm-7acff25f7f48ccbc8ca55032a59bfd4102ebed72.tar.gz
external_llvm-7acff25f7f48ccbc8ca55032a59bfd4102ebed72.tar.bz2
second argument to Value::setName is now gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--lib/Transforms/Utils/BasicBlockUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp
index ab315b6..bf1e361 100644
--- a/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -34,9 +34,9 @@ void llvm::ReplaceInstWithValue(BasicBlock::InstListType &BIL,
// Delete the unnecessary instruction now...
BI = BIL.erase(BI);
- // Make sure to propagate a name if there is one already...
- if (OldName.size() && !V->hasName())
- V->setName(OldName, &BIL.getParent()->getSymbolTable());
+ // Make sure to propagate a name if there is one already.
+ if (!OldName.empty() && !V->hasName())
+ V->setName(OldName);
}