From 9f6b29622e41e192bcac71772be1c69e90a8a72f Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 3 Feb 2014 22:20:34 +0000 Subject: [PATCH] Fix a -Wmicrosoft warning about an unrepresentable enum value In MSVC, enums are always signed unless you explicitly specify the type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200719 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaAttr.cpp b/lib/Sema/SemaAttr.cpp index 0214ba456c..499f958744 100644 --- a/lib/Sema/SemaAttr.cpp +++ b/lib/Sema/SemaAttr.cpp @@ -327,7 +327,7 @@ void Sema::AddCFAuditedAttribute(Decl *D) { } typedef std::vector > VisStack; -enum { NoVisibility = (unsigned) -1 }; +enum LLVM_ENUM_INT_TYPE(unsigned) { NoVisibility = ~0U }; void Sema::AddPushedVisibilityAttribute(Decl *D) { if (!VisContext) -- 2.49.0