From 6d669443884985ba2998abb471c0ca336b765388 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Dec 2002 17:28:40 +0000 Subject: [PATCH] Avoid bad assertion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4918 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/Printer.cpp | 2 +- lib/Target/X86/X86AsmPrinter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 62060594866..ae14e41d731 100644 --- a/lib/Target/X86/Printer.cpp +++ b/lib/Target/X86/Printer.cpp @@ -183,7 +183,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O, assert(isReg(MI->getOperand(0)) && (MI->getNumOperands() == 1 || (MI->getNumOperands() == 2 && - (MI->getOperand(1).getVRegValue() || + (MI->getOperand(1).getVRegValueOrNull() || isImmediate(MI->getOperand(1))))) && "Illegal form for AddRegFrm instruction!"); diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 62060594866..ae14e41d731 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -183,7 +183,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O, assert(isReg(MI->getOperand(0)) && (MI->getNumOperands() == 1 || (MI->getNumOperands() == 2 && - (MI->getOperand(1).getVRegValue() || + (MI->getOperand(1).getVRegValueOrNull() || isImmediate(MI->getOperand(1))))) && "Illegal form for AddRegFrm instruction!"); -- 2.34.1