[cfe-commits] r161631 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h

Jordan Rose jordan_rose at apple.com
Thu Aug 9 15:48:16 PDT 2012


Author: jrose
Date: Thu Aug  9 17:48:16 2012
New Revision: 161631

URL: http://llvm.org/viewvc/llvm-project?rev=161631&view=rev
Log:
[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.

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h?rev=161631&r1=161630&r2=161631&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h Thu Aug  9 17:48:16 2012
@@ -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;





More information about the cfe-commits mailing list