llvm.org GIT mirror llvm / df71b60
[GlobalISel] Silence unused variable warnings in Release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289941 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 3 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3838 return true;
3939
4040 const RegisterBank *RegBank = RBI.getRegBank(DstReg, MRI, TRI);
41 (void)RegBank;
4142 assert(RegBank && "Can't get reg bank for virtual register");
4243
43 const unsigned DstSize = MRI.getType(DstReg).getSizeInBits();
44 unsigned SrcReg = I.getOperand(1).getReg();
45 const unsigned SrcSize = RBI.getSizeInBits(SrcReg, MRI, TRI);
46 (void)SrcSize;
47 assert(DstSize == SrcSize && "Copy with different width?!");
44 assert(MRI.getType(DstReg).getSizeInBits() ==
45 RBI.getSizeInBits(I.getOperand(1).getReg(), MRI, TRI) &&
46 "Copy with different width?!");
4847
4948 assert(RegBank->getID() == ARM::GPRRegBankID && "Unsupported reg bank");
5049 const TargetRegisterClass *RC = &ARM::GPRRegClass;