Reflects MachineConstantPoolEntry changes.
[oota-llvm.git] / lib / Target / Sparc / SparcISelDAGToDAG.cpp
index a30e739420759e44ae97d6a1858ca4eae455201a..1d1b595743ce479a7fa4ff4e4ee6a8f44f13697d 100644 (file)
@@ -704,7 +704,7 @@ LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     return DAG.getNode(ISD::ADD, MVT::i32, Lo, Hi);
   }
   case ISD::ConstantPool: {
-    Constant *C = cast<ConstantPoolSDNode>(Op)->get();
+    Constant *C = cast<ConstantPoolSDNode>(Op)->getConstVal();
     SDOperand CP = DAG.getTargetConstantPool(C, MVT::i32,
                                   cast<ConstantPoolSDNode>(Op)->getAlignment());
     SDOperand Hi = DAG.getNode(SPISD::Hi, MVT::i32, CP);