[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161631 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
index 466be9a..9dd9d82 100644
@@ -115,7 +115,7 @@
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;