From 2010f7baec18914b8a5d1b2b4c3c21511fa6e25d Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Thu, 7 Aug 2003 15:01:48 +0000 Subject: [PATCH] Fix assertion in MachineInstr::substituteValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7675 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineInstr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;