[cfe-commits] r85833 - /cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h
Ted Kremenek
kremenek at apple.com
Mon Nov 2 14:24:53 PST 2009
Author: kremenek
Date: Mon Nov 2 16:24:53 2009
New Revision: 85833
URL: http://llvm.org/viewvc/llvm-project?rev=85833&view=rev
Log:
Hopefully make gcc-4.0 happy with respect to the following warning:
warning: 'class clang::StackFrameContext' has virtual functions but non-virtual destructor
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h?rev=85833&r1=85832&r2=85833&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/AnalysisContext.h Mon Nov 2 16:24:53 2009
@@ -80,6 +80,8 @@
: Kind(k), Ctx(ctx), Parent(parent) {}
public:
+ virtual ~LocationContext() {}
+
ContextKind getKind() const { return Kind; }
AnalysisContext *getAnalysisContext() const { return Ctx; }
@@ -119,6 +121,9 @@
StackFrameContext(AnalysisContext *ctx, const LocationContext *parent,
const Stmt *s)
: LocationContext(StackFrame, ctx, parent), CallSite(s) {}
+
+ virtual ~StackFrameContext() {}
+
Stmt const *getCallSite() const { return CallSite; }
@@ -141,6 +146,8 @@
ScopeContext(AnalysisContext *ctx, const LocationContext *parent,
const Stmt *s)
: LocationContext(Scope, ctx, parent), Enter(s) {}
+
+ virtual ~ScopeContext() {}
virtual void Profile(llvm::FoldingSetNodeID &ID) {
Profile(ID, getAnalysisContext(), getParent(), Enter);
More information about the cfe-commits
mailing list