diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-22 19:00:31 +0000 |
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-22 19:00:31 +0000 |
| commit | a8049574760a8ba4a56836e29fb10c3549c85e85 (patch) | |
| tree | e197d4043dd36d7f1f2ec7e195ded2d5eb3cb512 | |
| parent | df24da221eecb5f106d7e9c4fa3a7bf8ab09c1ad (diff) | |
| download | bcm5719-llvm-a8049574760a8ba4a56836e29fb10c3549c85e85.tar.gz bcm5719-llvm-a8049574760a8ba4a56836e29fb10c3549c85e85.zip | |
Fix warning introduced by r290297.
llvm-svn: 290356
| -rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 2 |
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) |

