summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAttr.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-02-03 22:20:34 +0000
committerReid Kleckner <reid@kleckner.net>2014-02-03 22:20:34 +0000
commit0133e780a4b855fc6e133f19a09cc23860129241 (patch)
tree9dfa348dc808c31d71a61d0fd450eb378dcf9cab /clang/lib/Sema/SemaAttr.cpp
parentc50b4bfc1ce2f3216226a3331ceb19544b477e5d (diff)
downloadbcm5719-llvm-0133e780a4b855fc6e133f19a09cc23860129241.tar.gz
bcm5719-llvm-0133e780a4b855fc6e133f19a09cc23860129241.zip
Fix a -Wmicrosoft warning about an unrepresentable enum value
In MSVC, enums are always signed unless you explicitly specify the type. llvm-svn: 200719
Diffstat (limited to 'clang/lib/Sema/SemaAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp
index 0214ba456c7..499f9587447 100644
--- a/clang/lib/Sema/SemaAttr.cpp
+++ b/clang/lib/Sema/SemaAttr.cpp
@@ -327,7 +327,7 @@ void Sema::AddCFAuditedAttribute(Decl *D) {
}
typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack;
-enum { NoVisibility = (unsigned) -1 };
+enum LLVM_ENUM_INT_TYPE(unsigned) { NoVisibility = ~0U };
void Sema::AddPushedVisibilityAttribute(Decl *D) {
if (!VisContext)
OpenPOWER on IntegriCloud