[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 07c538159dcb6328f20576f43af08331fde2ecb5..f56b17acbfbae110d2ce0214043f2c0f9e1e1cf0 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");