Skip to content

Commit 66895e1

Browse files
kazutakahiratakrishna2803
authored andcommitted
[AST] Remove an unnecessary cast (NFC) (llvm#151278)
getSignificantBits() already returns unsigned.
1 parent e685621 commit 66895e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
18181818
NumPositiveBits = std::max({NumPositiveBits, ActiveBits, 1u});
18191819
} else {
18201820
NumNegativeBits =
1821-
std::max(NumNegativeBits, (unsigned)InitVal.getSignificantBits());
1821+
std::max(NumNegativeBits, InitVal.getSignificantBits());
18221822
}
18231823

18241824
MembersRepresentableByInt &= isRepresentableIntegerValue(InitVal, IntTy);

0 commit comments

Comments
 (0)