Use DAG.getIntPtrConstant rather than DAG.getConstant
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAGPrinter.cpp
index 410f6157358a45c0a47b2c378cd912f4b5ba0041..f1883744129467d77364227e9182d91ad4f6b175 100644 (file)
@@ -127,7 +127,7 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
   } else if (const GlobalAddressSDNode *GADN =
              dyn_cast<GlobalAddressSDNode>(Node)) {
     Op += ": " + GADN->getGlobal()->getName();
-    if (int Offset = GADN->getOffset()) {
+    if (int64_t Offset = GADN->getOffset()) {
       if (Offset > 0)
         Op += "+" + itostr(Offset);
       else