diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-06-23 09:09:15 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-06-23 09:09:15 +0000 |
commit | 61ea0e469254e0c7ab0e190b463d994b9316846c (patch) | |
tree | 4a3a7f1235a5366dc6d5c41a4edf7b8b86b15b87 /llvm/lib/VMCore/Value.cpp | |
parent | 25fbb92320fac0a9982d03cc1b00973440d4d475 (diff) | |
download | bcm5719-llvm-61ea0e469254e0c7ab0e190b463d994b9316846c.tar.gz bcm5719-llvm-61ea0e469254e0c7ab0e190b463d994b9316846c.zip |
Reinstate r133513 (reverted in r133700) with an additional fix for a
-Wshorten-64-to-32 warning in Instructions.h.
llvm-svn: 133708
Diffstat (limited to 'llvm/lib/VMCore/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 29f6a8094f0..a03cddc9d5e 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -305,6 +305,9 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) { U.set(New); } + + if (BasicBlock *BB = dyn_cast<BasicBlock>(this)) + BB->replaceSuccessorsPhiUsesWith(cast<BasicBlock>(New)); } void Value::replaceAllUsesWith(Value *New) { |