summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-20 15:51:14 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-20 15:51:14 +0000
commit7e80640aa1deb8ac6bc0fb127cd25022cbcd80a9 (patch)
tree220bfee1b9c47aa975f601410b851130b8cc1e1f /llvm
parentc5b974e6d2c441541b7d1ae60dc6cb60676e8b6e (diff)
downloadbcm5719-llvm-7e80640aa1deb8ac6bc0fb127cd25022cbcd80a9.tar.gz
bcm5719-llvm-7e80640aa1deb8ac6bc0fb127cd25022cbcd80a9.zip
IR: Store StorageType as an unsigned bitfield
Use `unsigned` instead of `StorageType` for the bitfield to prevent MSVC from treating the top bit of the bitfield as a sign bit. llvm-svn: 226570
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/Metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Metadata.h b/llvm/include/llvm/IR/Metadata.h
index 4d5b61b4cfb..5590bc54881 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;
OpenPOWER on IntegriCloud