summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-15 22:18:19 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-15 22:18:19 +0000
commit23c9274b1af20787956c9c20725c4aca8febf72e (patch)
tree68d7d24d95b359b28f9c0ac1e553c80db4c2b036 /llvm/lib/CodeGen/MachineVerifier.cpp
parenta649c82d69eee3e621b22500c7e6528e11037cc8 (diff)
downloadbcm5719-llvm-23c9274b1af20787956c9c20725c4aca8febf72e.tar.gz
bcm5719-llvm-23c9274b1af20787956c9c20725c4aca8febf72e.zip
Fix confusing machine verifier error.
The error reported the number of explicit operands, but that isn't what is checked. In my case, this resulted in the confusing errors "Too few operands." followed shortly by "8 operands expected, but 8 given." llvm-svn: 194862
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index c57ce9c65c8..d61470c173b 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -775,7 +775,7 @@ void MachineVerifier::visitMachineInstrBefore(const MachineInstr *MI) {
if (MI->getNumOperands() < MCID.getNumOperands()) {
report("Too few operands", MI);
*OS << MCID.getNumOperands() << " operands expected, but "
- << MI->getNumExplicitOperands() << " given.\n";
+ << MI->getNumOperands() << " given.\n";
}
// Check the tied operands.
OpenPOWER on IntegriCloud