1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

A better error message.

llvm-svn: 71068
This commit is contained in:
Mikhail Glushenkov 2009-05-06 04:54:23 +00:00
parent fcc5ebb1d4
commit d5cadeed5d

View File

@ -86,8 +86,8 @@ const DagInit& InitPtrToDag(const Init* ptr) {
// less than or equal to min_arguments, otherwise throw an exception.
void checkNumberOfArguments (const DagInit* d, unsigned min_arguments) {
if (!d || d->getNumArgs() < min_arguments)
throw "Property " + d->getOperator()->getAsString()
+ " has too few arguments!";
throw d->getOperator()->getAsString()
+ ": too few arguments!";
}
// isDagEmpty - is this DAG marked with an empty marker?