mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-10 16:24:04 +00:00
Comment fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1dd35b4c35
commit
b797000820
@ -81,11 +81,10 @@ const DagInit& InitPtrToDag(const Init* ptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// checkNumberOfArguments - Ensure that the number of args in d is
|
// checkNumberOfArguments - Ensure that the number of args in d is
|
||||||
// less than or equal to min_arguments, otherwise throw an exception.
|
// greater than or equal to min_arguments, otherwise throw an exception.
|
||||||
void checkNumberOfArguments (const DagInit* d, unsigned min_arguments) {
|
void checkNumberOfArguments (const DagInit* d, unsigned min_arguments) {
|
||||||
if (!d || d->getNumArgs() < min_arguments)
|
if (!d || d->getNumArgs() < min_arguments)
|
||||||
throw d->getOperator()->getAsString()
|
throw d->getOperator()->getAsString() + ": too few arguments!";
|
||||||
+ ": too few arguments!";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// isDagEmpty - is this DAG marked with an empty marker?
|
// isDagEmpty - is this DAG marked with an empty marker?
|
||||||
|
Loading…
Reference in New Issue
Block a user