1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

[MIRParser] Fix a typo in comment and error message.

We have long switched from size to type.

llvm-svn: 290378
This commit is contained in:
Quentin Colombet 2016-12-22 21:56:35 +00:00
parent 57bbdcf9a9
commit d113df1785
2 changed files with 4 additions and 4 deletions

View File

@ -1026,9 +1026,9 @@ bool MIParser::parseRegisterOperand(MachineOperand &Dest,
}
}
} else if (consumeIfPresent(MIToken::lparen)) {
// Virtual registers may have a size with GlobalISel.
// Virtual registers may have a tpe with GlobalISel.
if (!TargetRegisterInfo::isVirtualRegister(Reg))
return error("unexpected size on physical register");
return error("unexpected type on physical register");
LLT Ty;
if (parseLowLevelType(Token.location(), Ty))

View File

@ -8,6 +8,6 @@ registers:
body: |
bb.0.entry:
liveins: %edi
; CHECK: [[@LINE+1]]:10: unexpected size on physical register
%edi(32) = G_ADD i32 %edi, %edi
; CHECK: [[@LINE+1]]:10: unexpected type on physical register
%edi(s32) = G_ADD i32 %edi, %edi
...