summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/ThreadSafetyCommon.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-04-23 13:58:21 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-04-23 13:58:21 +0000
commitbf58a6a892ec77216854fe26f3a66392de405587 (patch)
treea1db1d13caff089b59de238326761dcdadfd9c86 /clang/lib/Analysis/ThreadSafetyCommon.cpp
parente0a5afe8124beb8bc90217b86dcf4076eb9a4935 (diff)
downloadbcm5719-llvm-bf58a6a892ec77216854fe26f3a66392de405587.tar.gz
bcm5719-llvm-bf58a6a892ec77216854fe26f3a66392de405587.zip
Updated to be a bit more const friendly. Also switched the linkage to be static since this function is file-local. No functional changes intended.
llvm-svn: 206982
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r--clang/lib/Analysis/ThreadSafetyCommon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp
index 391680918e3..252fd97496b 100644
--- a/clang/lib/Analysis/ThreadSafetyCommon.cpp
+++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp
@@ -97,9 +97,9 @@ void simplifyIncompleteArg(Variable *V, til::Phi *Ph) {
// Return true if E is a variable that points to an incomplete Phi node.
-inline bool isIncompleteVar(SExpr *E) {
- if (Variable *V = dyn_cast<Variable>(E)) {
- if (Phi *Ph = dyn_cast<Phi>(V->definition()))
+static bool isIncompleteVar(const SExpr *E) {
+ if (const auto *V = dyn_cast<Variable>(E)) {
+ if (const auto *Ph = dyn_cast<Phi>(V->definition()))
return Ph->status() == Phi::PH_Incomplete;
}
return false;
OpenPOWER on IntegriCloud