diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-29 05:37:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-29 05:37:22 +0000 |
commit | 287d11191f8470add8deaad90e2c40a953a4c4f5 (patch) | |
tree | ac56c98428f7cf32469ca859d9f2b6e79f169b54 | |
parent | 23f3a49aecb6ee9080c39c0b53efd458c1575c2c (diff) | |
download | llvm-287d11191f8470add8deaad90e2c40a953a4c4f5.tar.gz llvm-287d11191f8470add8deaad90e2c40a953a4c4f5.tar.bz2 llvm-287d11191f8470add8deaad90e2c40a953a4c4f5.tar.xz |
Fix bug: Linker/2003-08-28-TypeResolvesGlobal3.ll
Use new replaceAllUsesWith stuff in a way that works even though types have not yet been propagated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8210 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index c3bd28b514..245fa482b7 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -78,7 +78,7 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) { // Must handle Constants specially, we cannot call replaceUsesOfWith on a // constant! if (Constant *C = dyn_cast<Constant>(Use)) { - C->replaceUsesOfWithOnConstant(this, New); + C->replaceUsesOfWithOnConstant(this, New, true); } else { Use->replaceUsesOfWith(this, New); } |