mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 22:53:08 +00:00
Scope a varible inside an if statement, to make it clear that
it's not used afterwards. llvm-svn: 114986
This commit is contained in:
parent
87245e5e04
commit
e6de2f7a66
@ -343,9 +343,7 @@ void MDNode::replaceOperand(MDNodeOperand *Op, Value *To) {
|
||||
FoldingSetNodeID ID;
|
||||
Profile(ID);
|
||||
void *InsertPoint;
|
||||
MDNode *N = pImpl->MDNodeSet.FindNodeOrInsertPos(ID, InsertPoint);
|
||||
|
||||
if (N) {
|
||||
if (MDNode *N = pImpl->MDNodeSet.FindNodeOrInsertPos(ID, InsertPoint)) {
|
||||
N->replaceAllUsesWith(this);
|
||||
N->destroy();
|
||||
N = pImpl->MDNodeSet.FindNodeOrInsertPos(ID, InsertPoint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user