fix bogus warning

llvm-svn: 22943
This commit is contained in:
Chris Lattner 2005-08-20 18:07:27 +00:00
parent 9b0a275f04
commit 4b08ba26d8
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ unsigned SimpleSched::Emit(SDOperand Op) {
unsigned SrcReg = cast<RegisterSDNode>(Op.getOperand(1))->getReg(); unsigned SrcReg = cast<RegisterSDNode>(Op.getOperand(1))->getReg();
// Figure out the register class to create for the destreg. // Figure out the register class to create for the destreg.
const TargetRegisterClass *TRC; const TargetRegisterClass *TRC = 0;
if (MRegisterInfo::isVirtualRegister(SrcReg)) { if (MRegisterInfo::isVirtualRegister(SrcReg)) {
TRC = RegMap->getRegClass(SrcReg); TRC = RegMap->getRegClass(SrcReg);
} else { } else {