IR: Specify underlying type instead of r226570, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 16:03:09 +0000 (16:03 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 16:03:09 +0000 (16:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226571 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Metadata.h

index 5590bc54881f9baa00a8dc507f66ff2fc36da330..8c2e78ad4b1537bb6ddfe38dbd57032e87da5736 100644 (file)
@@ -48,10 +48,10 @@ class Metadata {
 
 protected:
   /// \brief Active type of storage.
-  enum StorageType { Uniqued, Distinct, Temporary };
+  enum StorageType : unsigned char { Uniqued, Distinct, Temporary };
 
   /// \brief Storage flag for non-uniqued, otherwise unowned, metadata.
-  unsigned Storage : 2;
+  StorageType Storage : 2;
   // TODO: expose remaining bits to subclasses.
 
   unsigned short SubclassData16;