]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix -Wunused-local-typedef after rC358695
authorFangrui Song <maskray@google.com>
Fri, 19 Apr 2019 01:54:36 +0000 (01:54 +0000)
committerFangrui Song <maskray@google.com>
Fri, 19 Apr 2019 01:54:36 +0000 (01:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358729 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp

index c0d5d1bdc33c3cbd347cc05644a104405a0edc1d..3ee35b4aeea98a1c570695600cd29418af956d08 100644 (file)
@@ -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 = '.';