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:
parent
57bbdcf9a9
commit
d113df1785
@ -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))
|
||||
|
@ -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
|
||||
...
|
Loading…
Reference in New Issue
Block a user