[TableGen] Emit the correct error message.
authorDavide Italiano <davide@freebsd.org>
Mon, 27 Jul 2015 17:22:19 +0000 (17:22 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 27 Jul 2015 17:22:19 +0000 (17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243284 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/SetTheory.cpp

index 07c5381..f56b17a 100644 (file)
@@ -196,7 +196,7 @@ struct SequenceOp : public SetTheory::Operator {
     if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2]))
       To = II->getValue();
     else
-      PrintFatalError(Loc, "From must be an integer: " + Expr->getAsString());
+      PrintFatalError(Loc, "To must be an integer: " + Expr->getAsString());
     if (To < 0 || To >= (1 << 30))
       PrintFatalError(Loc, "To out of range");