mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Use slightly more correct grammar in error messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64148 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed2c45387b
commit
b9070d3f63
@ -1025,7 +1025,7 @@ bool LLParser::ParseTypeRec(PATypeHolder &Result) {
|
|||||||
if (Result.get() == Type::LabelTy)
|
if (Result.get() == Type::LabelTy)
|
||||||
return TokError("basic block pointers are invalid");
|
return TokError("basic block pointers are invalid");
|
||||||
if (Result.get() == Type::VoidTy)
|
if (Result.get() == Type::VoidTy)
|
||||||
return TokError("pointers to void are invalid, use i8* instead");
|
return TokError("pointers to void are invalid; use i8* instead");
|
||||||
Result = HandleUpRefs(PointerType::getUnqual(Result.get()));
|
Result = HandleUpRefs(PointerType::getUnqual(Result.get()));
|
||||||
Lex.Lex();
|
Lex.Lex();
|
||||||
break;
|
break;
|
||||||
@ -1035,7 +1035,7 @@ bool LLParser::ParseTypeRec(PATypeHolder &Result) {
|
|||||||
if (Result.get() == Type::LabelTy)
|
if (Result.get() == Type::LabelTy)
|
||||||
return TokError("basic block pointers are invalid");
|
return TokError("basic block pointers are invalid");
|
||||||
if (Result.get() == Type::VoidTy)
|
if (Result.get() == Type::VoidTy)
|
||||||
return TokError("pointers to void are invalid, use i8* instead");
|
return TokError("pointers to void are invalid; use i8* instead");
|
||||||
unsigned AddrSpace;
|
unsigned AddrSpace;
|
||||||
if (ParseOptionalAddrSpace(AddrSpace) ||
|
if (ParseOptionalAddrSpace(AddrSpace) ||
|
||||||
ParseToken(lltok::star, "expected '*' in address space"))
|
ParseToken(lltok::star, "expected '*' in address space"))
|
||||||
|
Loading…
Reference in New Issue
Block a user