[llvm] r226571 - IR: Specify underlying type instead of r226570, NFC

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Jan 20 08:03:10 PST 2015


Author: dexonsmith
Date: Tue Jan 20 10:03:09 2015
New Revision: 226571

URL: http://llvm.org/viewvc/llvm-project?rev=226571&view=rev
Log:
IR: Specify underlying type instead of r226570, NFC

Modified:
    llvm/trunk/include/llvm/IR/Metadata.h

Modified: llvm/trunk/include/llvm/IR/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Metadata.h?rev=226571&r1=226570&r2=226571&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Metadata.h (original)
+++ llvm/trunk/include/llvm/IR/Metadata.h Tue Jan 20 10:03:09 2015
@@ -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;





More information about the llvm-commits mailing list