diff --git a/llvm/include/llvm/IR/Metadata.h b/llvm/include/llvm/IR/Metadata.h index 4d5b61b4cfbc..5590bc54881f 100644 --- a/llvm/include/llvm/IR/Metadata.h +++ b/llvm/include/llvm/IR/Metadata.h @@ -51,7 +51,7 @@ protected: enum StorageType { Uniqued, Distinct, Temporary }; /// \brief Storage flag for non-uniqued, otherwise unowned, metadata. - StorageType Storage : 2; + unsigned Storage : 2; // TODO: expose remaining bits to subclasses. unsigned short SubclassData16;