The patch to fix some issues in r174543 fixed the lines failing the test, but missed...
authorDavid Tweed <david.tweed@arm.com>
Fri, 8 Feb 2013 16:35:10 +0000 (16:35 +0000)
committerDavid Tweed <david.tweed@arm.com>
Fri, 8 Feb 2013 16:35:10 +0000 (16:35 +0000)
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.

llvm-svn: 174717

llvm/lib/DebugInfo/DWARFDebugFrame.cpp

index 244ff4c..9da304d 100644 (file)
@@ -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";
   }