r214773 - Nit picky const-correctness with auto. No functional changes.
Aaron Ballman
aaron at aaronballman.com
Mon Aug 4 13:49:47 PDT 2014
Author: aaronballman
Date: Mon Aug 4 15:49:47 2014
New Revision: 214773
URL: http://llvm.org/viewvc/llvm-project?rev=214773&view=rev
Log:
Nit picky const-correctness with auto. No functional changes.
Modified:
cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h?rev=214773&r1=214772&r2=214773&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h Mon Aug 4 15:49:47 2014
@@ -58,10 +58,10 @@ inline bool matches(const til::SExpr *E1
}
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();
More information about the cfe-commits
mailing list