diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index c20c65a5cea8..91792a407622 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -1147,7 +1147,6 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, ReturnInst *returnInstr = cast(subtreeRoot->getInstruction()); assert(returnInstr->getOpcode() == Instruction::Ret); - Method* method = returnInstr->getParent()->getParent(); Instruction* returnReg = new TmpInstruction(TMP_INSTRUCTION_OPCODE, returnInstr, NULL);