llvm.org GIT mirror llvm / 287d111
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 Chris Lattner 17 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7777 // Must handle Constants specially, we cannot call replaceUsesOfWith on a
7878 // constant!
7979 if (Constant *C = dyn_cast(Use)) {
80 C->replaceUsesOfWithOnConstant(this, New);
80 C->replaceUsesOfWithOnConstant(this, New, true);
8181 } else {
8282 Use->replaceUsesOfWith(this, New);
8383 }