forked from OSchip/llvm-project
parent
7c94d1171a
commit
e225507193
|
@ -66,7 +66,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>(U.getUser())) {
|
if (Constant *C = dyn_cast<Constant>(U.getUser())) {
|
||||||
C->replaceUsesOfWithOnConstant(this, New);
|
C->replaceUsesOfWithOnConstant(this, New, true);
|
||||||
} else {
|
} else {
|
||||||
U.set(New);
|
U.set(New);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue