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:
Chris Lattner 2003-11-05 19:09:40 +00:00
parent 1bcc70d240
commit c4856f37f0

View File

@ -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);
}