diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:05:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:05:20 +0000 |
commit | 6d0a24c60867e56814e5723510184da5dac03077 (patch) | |
tree | 5d54a2ca4715490c1251dd8fa10496974e767a54 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 7c832fb0b22184cefd047332d56fb53b71aed821 (diff) | |
download | llvm-6d0a24c60867e56814e5723510184da5dac03077.zip llvm-6d0a24c60867e56814e5723510184da5dac03077.tar.gz llvm-6d0a24c60867e56814e5723510184da5dac03077.tar.bz2 |
second argument to Value::setName is now gone.
llvm-svn: 20463
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index ab315b6..bf1e361 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/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); } |