From d837577ecaad2f122e61b0be4a3993f0e0fd0e36 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Thu, 22 Dec 2016 19:00:31 +0000 Subject: [PATCH] Fix warning introduced by r290297. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290356 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 114f684c42..f9b6a91a30 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -256,7 +256,7 @@ static bool checkPositiveIntArgument(Sema &S, const AttributeList &Attr, if (!checkUInt32Argument(S, Attr, Expr, UVal, Idx)) return false; - if (UVal > std::numeric_limits::max()) { + if (UVal > (uint32_t)std::numeric_limits::max()) { llvm::APSInt I(32); // for toString I = UVal; S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) -- 2.40.0