[PATCH] D34486: MC: Fix dumping of MCFragment values

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 10:57:54 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL306039: MC: Fix dumping of MCFragment values (authored by sbc).

Changed prior to commit:
  https://reviews.llvm.org/D34486?vs=103489&id=103605#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D34486

Files:
  llvm/trunk/lib/MC/MCFragment.cpp


Index: llvm/trunk/lib/MC/MCFragment.cpp
===================================================================
--- llvm/trunk/lib/MC/MCFragment.cpp
+++ llvm/trunk/lib/MC/MCFragment.cpp
@@ -382,7 +382,8 @@
   }
   case MCFragment::FT_Fill:  {
     const MCFillFragment *FF = cast<MCFillFragment>(this);
-    OS << " Value:" << FF->getValue() << " Size:" << FF->getSize();
+    OS << " Value:" << static_cast<unsigned>(FF->getValue())
+       << " Size:" << FF->getSize();
     break;
   }
   case MCFragment::FT_Relaxable:  {
@@ -395,7 +396,8 @@
   case MCFragment::FT_Org:  {
     const MCOrgFragment *OF = cast<MCOrgFragment>(this);
     OS << "\n       ";
-    OS << " Offset:" << OF->getOffset() << " Value:" << OF->getValue();
+    OS << " Offset:" << OF->getOffset()
+       << " Value:" << static_cast<unsigned>(OF->getValue());
     break;
   }
   case MCFragment::FT_Dwarf:  {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34486.103605.patch
Type: text/x-patch
Size: 882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170622/5f56fe89/attachment.bin>


More information about the llvm-commits mailing list