If we're not checking, don't check!

llvm-svn: 9732
This commit is contained in:
Chris Lattner 2003-11-05 19:09:40 +00:00
parent 7c94d1171a
commit e225507193
1 changed files with 1 additions and 1 deletions

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