Reflects MachineConstantPoolEntry changes.
[oota-llvm.git] / lib / Target / ARM / ARMISelDAGToDAG.cpp
index c356f09a691378364f5aaf03b30afeec7db7290b..8181e9c17f3f5b5fce0a0d9685a3ba5c0246661d 100644 (file)
@@ -294,7 +294,7 @@ static SDOperand LowerFORMAL_ARGUMENT(SDOperand Op, SelectionDAG &DAG,
 static SDOperand LowerConstantPool(SDOperand Op, SelectionDAG &DAG) {
   MVT::ValueType PtrVT = Op.getValueType();
   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
-  Constant *C = CP->get();
+  Constant *C = CP->getConstVal();
   SDOperand CPI = DAG.getTargetConstantPool(C, PtrVT, CP->getAlignment());
 
   return CPI;