Removing a redundant assignment

llvm-svn: 295055
This commit is contained in:
Artyom Skrobov 2017-02-14 14:44:01 +00:00
parent 9f61feac4a
commit dc66a82dc7
1 changed files with 0 additions and 1 deletions

View File

@ -235,7 +235,6 @@ void InstrEmitter::CreateVirtualRegisters(SDNode *Node,
if (II.OpInfo[i].isOptionalDef()) {
// Optional def must be a physical register.
unsigned NumResults = CountResults(Node);
VRBase = cast<RegisterSDNode>(Node->getOperand(i-NumResults))->getReg();
assert(TargetRegisterInfo::isPhysicalRegister(VRBase));
MIB.addReg(VRBase, RegState::Define);