aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-05 19:09:40 +0000
committerChris Lattner <sabre@nondot.org>2003-11-05 19:09:40 +0000
commitc4856f37f0c59386368e1fc5313a0ac88baedb7b (patch)
tree3431d32a38e834f07cb50f949a5c5484abc2f3c1
parent1bcc70d240edabb41dc74214f21ee86240ee68fb (diff)
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
-rw-r--r--lib/VMCore/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp
index d11abc10cb..709ae3e9ae 100644
--- a/lib/VMCore/Value.cpp
+++ b/lib/VMCore/Value.cpp
@@ -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);
}