If we're not checking, don't check!
authorChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 19:09:40 +0000 (19:09 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 19:09:40 +0000 (19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9732 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index d11abc10cb4f28412262fc1cab3fe25002dce27c..709ae3e9aeda4a146a206f866514045da3fbeded 100644 (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);
     }