summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2016-12-22 19:00:31 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2016-12-22 19:00:31 +0000
commita8049574760a8ba4a56836e29fb10c3549c85e85 (patch)
treee197d4043dd36d7f1f2ec7e195ded2d5eb3cb512
parentdf24da221eecb5f106d7e9c4fa3a7bf8ab09c1ad (diff)
downloadbcm5719-llvm-a8049574760a8ba4a56836e29fb10c3549c85e85.tar.gz
bcm5719-llvm-a8049574760a8ba4a56836e29fb10c3549c85e85.zip
Fix warning introduced by r290297.
llvm-svn: 290356
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 114f684c420..f9b6a91a300 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/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<int>::max()) {
+ if (UVal > (uint32_t)std::numeric_limits<int>::max()) {
llvm::APSInt I(32); // for toString
I = UVal;
S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)
OpenPOWER on IntegriCloud