summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-16 18:25:06 +0000
committerChris Lattner <sabre@nondot.org>2006-06-16 18:25:06 +0000
commit4b464768d1dce7589dc48f238e74a6f64519a212 (patch)
treef7387e0e0cb4fc90dbc2311d62b4d585e02a835e /llvm
parent6c79005b0def1bf2821edc42be0d26bacf392e6a (diff)
downloadbcm5719-llvm-4b464768d1dce7589dc48f238e74a6f64519a212.tar.gz
bcm5719-llvm-4b464768d1dce7589dc48f238e74a6f64519a212.zip
Improve a comment.
llvm-svn: 28833
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 73e639db65a..c46b0883aef 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -145,7 +145,7 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N,
assert(NumResults <= 1 &&
"We only work with nodes with zero or one result so far!");
- // Check that the number of operands is sane.
+ // Check that the number of operands is sane. Negative operands -> varargs.
if (NodeInfo.getNumOperands() >= 0) {
if (N->getNumChildren() != (unsigned)NodeInfo.getNumOperands())
TP.error(N->getOperator()->getName() + " node requires exactly " +
OpenPOWER on IntegriCloud