aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Type.h2
-rw-r--r--lib/AST/Type.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index 203d13b09f..a49c83cf1d 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -807,7 +807,7 @@ protected:
: CanonicalType(Canonical.isNull() ? QualType(this_(), 0) : Canonical),
TC(tc), Dependent(dependent), LinkageKnown(false),
CachedLinkage(NoLinkage), FromPCH(false) {}
- virtual ~Type() {}
+ virtual ~Type();
friend class ASTContext;
public:
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 1021943647..67fa1e6cf9 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -33,6 +33,8 @@ bool QualType::isConstant(QualType T, ASTContext &Ctx) {
return false;
}
+Type::~Type() { }
+
void DependentSizedArrayType::Profile(llvm::FoldingSetNodeID &ID,
ASTContext &Context,
QualType ET,