From db1cb2b3a15301c000c2bc5a99d5807510b2a456 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Dec 2005 03:50:19 +0000 Subject: [PATCH] Fix a regression caused by a patch earlier today git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24561 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index b47808d9364..59edcd76000 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -721,7 +721,8 @@ SDOperand PPCDAGToDAGISel::SelectSETCC(SDOperand Op) { SDOperand CR7Reg = CurDAG->getRegister(PPC::CR7, MVT::i32); SDOperand InFlag; // Null incoming flag value. - CCReg = CurDAG->getCopyToReg(CurDAG->getEntryNode(), CR7Reg, CCReg, InFlag); + CCReg = CurDAG->getCopyToReg(CurDAG->getEntryNode(), CR7Reg, CCReg, + InFlag).getValue(1); if (TLI.getTargetMachine().getSubtarget().isGigaProcessor()) IntCR = CurDAG->getTargetNode(PPC::MFOCRF, MVT::i32, CR7Reg, CCReg); -- 2.34.1