mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
Fix warning; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48d33540b6
commit
ddd1430cb0
@ -124,8 +124,8 @@ LLT MachineRegisterInfo::getType(unsigned VReg) const {
|
||||
|
||||
void MachineRegisterInfo::setType(unsigned VReg, LLT Ty) {
|
||||
// Check that VReg doesn't have a class.
|
||||
assert(getRegClassOrRegBank(VReg).isNull() ||
|
||||
!getRegClassOrRegBank(VReg).is<const TargetRegisterClass *>() &&
|
||||
assert((getRegClassOrRegBank(VReg).isNull() ||
|
||||
!getRegClassOrRegBank(VReg).is<const TargetRegisterClass *>()) &&
|
||||
"Can't set the size of a non-generic virtual register");
|
||||
getVRegToType()[VReg] = Ty;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user