commit | 61ea0e469254e0c7ab0e190b463d994b9316846c | [log] [tgz] |
---|---|---|
author | Jay Foad <jay.foad@gmail.com> | Thu Jun 23 09:09:15 2011 +0000 |
committer | Jay Foad <jay.foad@gmail.com> | Thu Jun 23 09:09:15 2011 +0000 |
tree | 4a3a7f1235a5366dc6d5c41a4edf7b8b86b15b87 | |
parent | 25fbb92320fac0a9982d03cc1b00973440d4d475 [diff] [blame] |
Reinstate r133513 (reverted in r133700) with an additional fix for a -Wshorten-64-to-32 warning in Instructions.h. llvm-svn: 133708
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 29f6a80..a03cddc 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp
@@ -305,6 +305,9 @@ U.set(New); } + + if (BasicBlock *BB = dyn_cast<BasicBlock>(this)) + BB->replaceSuccessorsPhiUsesWith(cast<BasicBlock>(New)); } void Value::replaceAllUsesWith(Value *New) {