Nit picky const-correctness with auto. No functional changes.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 4 Aug 2014 20:49:47 +0000 (20:49 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 4 Aug 2014 20:49:47 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214773 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/ThreadSafetyCommon.h

index 06b106dffe0842dd1f40d935192e01fa48b35604..83b652d26b15f0a3868c1e30b44bdce64b3e8e96 100644 (file)
@@ -58,10 +58,10 @@ inline bool matches(const til::SExpr *E1, const til::SExpr *E2) {
 }
 
 inline bool partiallyMatches(const til::SExpr *E1, const til::SExpr *E2) {
-  auto *PE1 = dyn_cast_or_null<til::Project>(E1);
+  const auto *PE1 = dyn_cast_or_null<til::Project>(E1);
   if (!PE1)
     return false;
-  auto *PE2 = dyn_cast_or_null<til::Project>(E2);
+  const auto *PE2 = dyn_cast_or_null<til::Project>(E2);
   if (!PE2)
     return false;
   return PE1->clangDecl() == PE2->clangDecl();