aboutsummaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorDavid Tweed <david.tweed@arm.com>2013-02-08 16:35:10 +0000
committerDavid Tweed <david.tweed@arm.com>2013-02-08 16:35:10 +0000
commit0b821eff4c9c8d3b7ac872691bc453337ad3d03a (patch)
treee4a74cab76fdcb3df4186bcb84e8c94190ff4afc /lib/DebugInfo
parentfb55a8fd7c38aa09d9c243d48a8a72d890f36a3d (diff)
The patch to fix some issues in r174543 fixed the lines failing the test, but missed a couple
of lines which weren't being explicitly looked at and were printing incorrect results. These values clearly must lie within 32 bits, so the casts are definitely safe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFDebugFrame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARFDebugFrame.cpp
index 244ff4c1a1..9da304d31f 100644
--- a/lib/DebugInfo/DWARFDebugFrame.cpp
+++ b/lib/DebugInfo/DWARFDebugFrame.cpp
@@ -69,9 +69,9 @@ public:
<< "\n";
OS << format(" Version: %d\n", Version);
OS << " Augmentation: \"" << Augmentation << "\"\n";
- OS << format(" Code alignment factor: %u\n", CodeAlignmentFactor);
- OS << format(" Data alignment factor: %d\n", DataAlignmentFactor);
- OS << format(" Return address column: %d\n", ReturnAddressRegister);
+ OS << format(" Code alignment factor: %u\n", (uint32_t)CodeAlignmentFactor);
+ OS << format(" Data alignment factor: %d\n", (int32_t)DataAlignmentFactor);
+ OS << format(" Return address column: %d\n", (int32_t)ReturnAddressRegister);
OS << "\n";
}