Skip to content

Commit

Permalink
Fix typos in tablegen error messages
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209968 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
arsenm committed May 31, 2014
1 parent df96c56 commit 090da8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/TableGen/TGParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,15 +845,15 @@ Init *TGParser::ParseOperation(Record *CurRec) {
ListRecTy *LType = dyn_cast<ListRecTy>(LHSt->getType());
StringRecTy *SType = dyn_cast<StringRecTy>(LHSt->getType());
if (!LType && !SType) {
TokError("expected list or string type argumnet in unary operator");
TokError("expected list or string type argument in unary operator");
return nullptr;
}
}

if (Code == UnOpInit::HEAD
|| Code == UnOpInit::TAIL) {
if (!LHSl && !LHSt) {
TokError("expected list type argumnet in unary operator");
TokError("expected list type argument in unary operator");
return nullptr;
}

Expand All @@ -877,7 +877,7 @@ Init *TGParser::ParseOperation(Record *CurRec) {
assert(LHSt && "expected list type argument in unary operator");
ListRecTy *LType = dyn_cast<ListRecTy>(LHSt->getType());
if (!LType) {
TokError("expected list type argumnet in unary operator");
TokError("expected list type argument in unary operator");
return nullptr;
}
if (Code == UnOpInit::HEAD) {
Expand Down

0 comments on commit 090da8f

Please sign in to comment.