mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
If we're not checking, don't check!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1bcc70d240
commit
c4856f37f0
@ -66,7 +66,7 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) {
|
||||
// Must handle Constants specially, we cannot call replaceUsesOfWith on a
|
||||
// constant!
|
||||
if (Constant *C = dyn_cast<Constant>(U.getUser())) {
|
||||
C->replaceUsesOfWithOnConstant(this, New);
|
||||
C->replaceUsesOfWithOnConstant(this, New, true);
|
||||
} else {
|
||||
U.set(New);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user