aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-11-16 01:58:21 +0000
committerEric Christopher <echristo@apple.com>2010-11-16 01:58:21 +0000
commit800e57313e19a30749ca59ed03f33583ffff4a3a (patch)
tree7db7fc98119da028920bfb305c1b7eed7237e0a4 /lib
parentb8efa6b475ed2f7d3797a8719cd27ab5fd64ae42 (diff)
downloadexternal_llvm-800e57313e19a30749ca59ed03f33583ffff4a3a.zip
external_llvm-800e57313e19a30749ca59ed03f33583ffff4a3a.tar.gz
external_llvm-800e57313e19a30749ca59ed03f33583ffff4a3a.tar.bz2
Make the verifier a little quieter on instructions that it's probably
(and likely) wrong about anyhow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineVerifier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp
index 8ada60a..47a94b3 100644
--- a/lib/CodeGen/MachineVerifier.cpp
+++ b/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())