aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-18 18:22:42 +0000
committerDan Gohman <gohman@apple.com>2008-10-18 18:22:42 +0000
commit668aff66232d17731153c5af1cc45aa4d351f00b (patch)
treec4d0d004c5cb33cedec13dc83e503ebd9d9313db /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent4ed4329c37f5a64c16ad4dc1960cbcb66b7118d4 (diff)
downloadexternal_llvm-668aff66232d17731153c5af1cc45aa4d351f00b.zip
external_llvm-668aff66232d17731153c5af1cc45aa4d351f00b.tar.gz
external_llvm-668aff66232d17731153c5af1cc45aa4d351f00b.tar.bz2
Don't truncate GlobalAddress offsets to int in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 410f615..f188374 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -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