[llvm-branch-commits] [llvm-branch] r223749 - Fixup backport of r223318
Hal Finkel
hfinkel at anl.gov
Mon Dec 8 18:43:06 PST 2014
Author: hfinkel
Date: Mon Dec 8 20:43:05 2014
New Revision: 223749
URL: http://llvm.org/viewvc/llvm-project?rev=223749&view=rev
Log:
Fixup backport of r223318
TM.getSubtargetImpl()->getRegisterInfo() needs to be TM.getRegisterInfo() in 3.5.
Modified:
llvm/branches/release_35/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Modified: llvm/branches/release_35/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_35/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=223749&r1=223748&r2=223749&view=diff
==============================================================================
--- llvm/branches/release_35/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)
+++ llvm/branches/release_35/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Mon Dec 8 20:43:05 2014
@@ -177,7 +177,7 @@ namespace {
std::vector<SDValue> &OutOps) override {
// We need to make sure that this one operand does not end up in r0
// (because we might end up lowering this as 0(%op)).
- const TargetRegisterInfo *TRI = TM.getSubtargetImpl()->getRegisterInfo();
+ const TargetRegisterInfo *TRI = TM.getRegisterInfo();
const TargetRegisterClass *TRC = TRI->getPointerRegClass(*MF, /*Kind=*/1);
SDValue RC = CurDAG->getTargetConstant(TRC->getID(), MVT::i32);
SDValue NewOp =
More information about the llvm-branch-commits
mailing list