Skip to content

Commit

Permalink
[Sema] Silence warnings when targeting x86 with VS2019 16.5.4
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D79337
  • Loading branch information
aganea committed May 6, 2020
1 parent 94438c8 commit 3483cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/ParsedAttr.cpp
Expand Up @@ -111,7 +111,7 @@ namespace {

const ParsedAttrInfo &ParsedAttrInfo::get(const AttributeCommonInfo &A) {
// If we have a ParsedAttrInfo for this ParsedAttr then return that.
if (A.getParsedKind() < llvm::array_lengthof(AttrInfoMap))
if ((size_t)A.getParsedKind() < llvm::array_lengthof(AttrInfoMap))
return *AttrInfoMap[A.getParsedKind()];

// If this is an ignored attribute then return an appropriate ParsedAttrInfo.
Expand Down

0 comments on commit 3483cdc

Please sign in to comment.