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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFDebugFrame.cpp

index 244ff4c1a1eb2f274430b8743441a03501c1d53c..9da304d31f80ac73ee84e5b650c79df9b3f0f98b 100644 (file)
@@ -69,9 +69,9 @@ public:
        << "\n";
     OS << format("  Version:               %d\n", Version);
     OS << "  Augmentation:          \"" << Augmentation << "\"\n";
        << "\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";
   }
 
     OS << "\n";
   }