From: Vikram S. Adve Date: Thu, 7 Aug 2003 15:01:48 +0000 (+0000) Subject: Fix assertion in MachineInstr::substituteValue(). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2010f7baec18914b8a5d1b2b4c3c21511fa6e25d;p=oota-llvm.git Fix assertion in MachineInstr::substituteValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7675 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 8678d14e0e5..248adc2d4da 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -135,8 +135,8 @@ MachineInstr::substituteValue(const Value* oldVal, Value* newVal, bool defsOnly, bool notDefsAndUses, bool& someArgsWereIgnored) { - assert((defsOnly || !notDefsAndUses) && - "notDefsAndUses is irrelevant if defsOnly == false."); + assert((!defsOnly || !notDefsAndUses) && + "notDefsAndUses is irrelevant if defsOnly == true."); unsigned numSubst = 0;