mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
[TableGen] Emit the correct error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
80ec0f8f15
commit
c11299b4a7
1 file changed
+1
-1
@@ -196,7 +196,7 @@ struct SequenceOp : public SetTheory::Operator {
|
|||||||
if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2]))
|
if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2]))
|
||||||
To = II->getValue();
|
To = II->getValue();
|
||||||
else
|
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))
|
if (To < 0 || To >= (1 << 30))
|
||||||
PrintFatalError(Loc, "To out of range");
|
PrintFatalError(Loc, "To out of range");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user