From da92f366c7675f4b8b73ac7b9403b51355ae97f4 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(). llvm-svn: 7675 --- llvm/lib/CodeGen/MachineInstr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 8678d14e0e5f..248adc2d4da7 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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;