r358729 - [analyzer] Fix -Wunused-local-typedef after rC358695
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 18 18:54:36 PDT 2019
Author: maskray
Date: Thu Apr 18 18:54:36 2019
New Revision: 358729
URL: http://llvm.org/viewvc/llvm-project?rev=358729&view=rev
Log:
[analyzer] Fix -Wunused-local-typedef after rC358695
Modified:
cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp?rev=358729&r1=358728&r2=358729&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp Thu Apr 18 18:54:36 2019
@@ -63,11 +63,8 @@ static
"In order to efficiently gather checkers/packages, this function "
"expects them to be already sorted!");
- typename CheckerOrPackageInfoList::value_type Info(FullName);
-
- return llvm::lower_bound(
- Collection, Info,
- FullNameLT<typename CheckerOrPackageInfoList::value_type>{});
+ return llvm::lower_bound(Collection, CheckerOrPackage(FullName),
+ CheckerOrPackageFullNameLT{});
}
static constexpr char PackageSeparator = '.';
More information about the cfe-commits
mailing list