diff --git a/clang-tools-extra/clang-tidy/misc/MisplacedWideningCastCheck.cpp b/clang-tools-extra/clang-tidy/misc/MisplacedWideningCastCheck.cpp index c870da1ab04e..fba775a9e2c5 100644 --- a/clang-tools-extra/clang-tidy/misc/MisplacedWideningCastCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/MisplacedWideningCastCheck.cpp @@ -95,7 +95,7 @@ static unsigned getMaxCalculationWidth(ASTContext &Context, const Expr *E) { } static llvm::SmallDenseMap createRelativeIntSizesMap() { - llvm::SmallDenseMap Result(14); + llvm::SmallDenseMap Result; Result[BuiltinType::UChar] = 1; Result[BuiltinType::SChar] = 1; Result[BuiltinType::Char_U] = 1; @@ -114,7 +114,7 @@ static llvm::SmallDenseMap createRelativeIntSizesMap() { } static llvm::SmallDenseMap createRelativeCharSizesMap() { - llvm::SmallDenseMap Result(6); + llvm::SmallDenseMap Result; Result[BuiltinType::UChar] = 1; Result[BuiltinType::SChar] = 1; Result[BuiltinType::Char_U] = 1; @@ -125,7 +125,7 @@ static llvm::SmallDenseMap createRelativeCharSizesMap() { } static llvm::SmallDenseMap createRelativeCharSizesWMap() { - llvm::SmallDenseMap Result(6); + llvm::SmallDenseMap Result; Result[BuiltinType::UChar] = 1; Result[BuiltinType::SChar] = 1; Result[BuiltinType::Char_U] = 1;