From 08c083148b1adffcadd7cf6e55df703a511caff6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 16 Nov 2010 01:58:21 +0000 Subject: Make the verifier a little quieter on instructions that it's probably (and likely) wrong about anyhow. llvm-svn: 119320 --- llvm/lib/CodeGen/MachineVerifier.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp') diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 8ada60a5533..47a94b35c76 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -558,7 +558,9 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) { else if (MO->isImplicit()) report("Explicit definition marked as implicit", MO, MONum); } else if (MONum < TI.getNumOperands()) { - if (MO->isReg()) { + // Don't check if it's a variadic instruction. See, e.g., LDM_RET in the arm + // back end. + if (MO->isReg() && MONum != TI.getNumOperands()-1) { if (MO->isDef()) report("Explicit operand marked as def", MO, MONum); if (MO->isImplicit()) -- cgit v1.2.3