[clang-tools-extra] r265544 - [clang-tidy] Assertion fix in misc-misplaced-widening-cast check.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 6 07:49:22 PDT 2016
Author: xazax
Date: Wed Apr 6 09:49:15 2016
New Revision: 265544
URL: http://llvm.org/viewvc/llvm-project?rev=265544&view=rev
Log:
[clang-tidy] Assertion fix in misc-misplaced-widening-cast check.
Modified:
clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp?rev=265544&r1=265543&r2=265544&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp Wed Apr 6 09:49:15 2016
@@ -95,7 +95,7 @@ static unsigned getMaxCalculationWidth(A
}
static llvm::SmallDenseMap<int, int> createRelativeIntSizesMap() {
- llvm::SmallDenseMap<int, int> Result(14);
+ llvm::SmallDenseMap<int, int> Result;
Result[BuiltinType::UChar] = 1;
Result[BuiltinType::SChar] = 1;
Result[BuiltinType::Char_U] = 1;
@@ -114,7 +114,7 @@ static llvm::SmallDenseMap<int, int> cre
}
static llvm::SmallDenseMap<int, int> createRelativeCharSizesMap() {
- llvm::SmallDenseMap<int, int> Result(6);
+ llvm::SmallDenseMap<int, int> Result;
Result[BuiltinType::UChar] = 1;
Result[BuiltinType::SChar] = 1;
Result[BuiltinType::Char_U] = 1;
@@ -125,7 +125,7 @@ static llvm::SmallDenseMap<int, int> cre
}
static llvm::SmallDenseMap<int, int> createRelativeCharSizesWMap() {
- llvm::SmallDenseMap<int, int> Result(6);
+ llvm::SmallDenseMap<int, int> Result;
Result[BuiltinType::UChar] = 1;
Result[BuiltinType::SChar] = 1;
Result[BuiltinType::Char_U] = 1;
More information about the cfe-commits
mailing list