mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
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
This commit is contained in:
parent
23f3a49aec
commit
287d11191f
@ -78,7 +78,7 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) {
|
|||||||
// Must handle Constants specially, we cannot call replaceUsesOfWith on a
|
// Must handle Constants specially, we cannot call replaceUsesOfWith on a
|
||||||
// constant!
|
// constant!
|
||||||
if (Constant *C = dyn_cast<Constant>(Use)) {
|
if (Constant *C = dyn_cast<Constant>(Use)) {
|
||||||
C->replaceUsesOfWithOnConstant(this, New);
|
C->replaceUsesOfWithOnConstant(this, New, true);
|
||||||
} else {
|
} else {
|
||||||
Use->replaceUsesOfWith(this, New);
|
Use->replaceUsesOfWith(this, New);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user