aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-09 22:48:16 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-09 22:48:16 +0000
commitbf74b568182bcfbe711b6a4f74293d007b8d5f00 (patch)
tree0979238d7e69e6a16c7c2fd7ad9f2314ac505c87
parentc9c48dba2004b9d25e96d02e12b932a8826c6632 (diff)
[analyzer] Devirtualize StoreManager::evalDerivedToBase(SVal, CastExpr)
This was triggering -Woverloaded-virtual, but there's really no reason for the cast version to be virtual anyway. It just calls through to the QualType entry point. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/Store.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
index 466be9af51..9dd9d82e65 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
@@ -115,7 +115,7 @@ public:
virtual SVal ArrayToPointer(Loc Array) = 0;
/// Evaluates DerivedToBase casts.
- virtual SVal evalDerivedToBase(SVal derived, const CastExpr *Cast);
+ SVal evalDerivedToBase(SVal derived, const CastExpr *Cast);
/// Evaluates a derived-to-base cast through a single level of derivation.
virtual SVal evalDerivedToBase(SVal derived, QualType derivedPtrType) = 0;