llvm.org GIT mirror llvm / bc42415
Debug Info: Bail out of AddMachineRegPiece() if MachineReg is not a physical register. The call to getMinimalPhysRegClass() later on asserts on this condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225852 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 4 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9292 unsigned PieceSizeInBits,
9393 unsigned PieceOffsetInBits) {
9494 const TargetRegisterInfo *TRI = getTRI();
95 if (!TRI->isPhysicalRegister(MachineReg)) {
96 // FIXME: We have no reasonable way of handling errors in here.
97 EmitOp(dwarf::DW_OP_nop, "nop (could not find a dwarf register number)");
98 return;
99 }
100
95101 int Reg = TRI->getDwarfRegNum(MachineReg, false);
96102
97103 // If this is a valid register number, emit it.