forked from OSchip/llvm-project
[AST][NFC] Make ArrayTypeTraitExpr non polymorphic
ArrayTypeTraitExpr is the only expression class which is polymorphic. As far as I can tell this is completely pointless. Differential Revision: https://reviews.llvm.org/D55221 Reviewed By: aaron.ballman llvm-svn: 348276
This commit is contained in:
parent
d2e8dd76b5
commit
f6d5e141f4
|
@ -2455,8 +2455,6 @@ class ArrayTypeTraitExpr : public Expr {
|
||||||
/// The type being queried.
|
/// The type being queried.
|
||||||
TypeSourceInfo *QueriedType = nullptr;
|
TypeSourceInfo *QueriedType = nullptr;
|
||||||
|
|
||||||
virtual void anchor();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
friend class ASTStmtReader;
|
friend class ASTStmtReader;
|
||||||
|
|
||||||
|
@ -2474,8 +2472,6 @@ public:
|
||||||
explicit ArrayTypeTraitExpr(EmptyShell Empty)
|
explicit ArrayTypeTraitExpr(EmptyShell Empty)
|
||||||
: Expr(ArrayTypeTraitExprClass, Empty), ATT(0) {}
|
: Expr(ArrayTypeTraitExprClass, Empty), ATT(0) {}
|
||||||
|
|
||||||
virtual ~ArrayTypeTraitExpr() = default;
|
|
||||||
|
|
||||||
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getEndLoc() const LLVM_READONLY { return RParen; }
|
SourceLocation getEndLoc() const LLVM_READONLY { return RParen; }
|
||||||
|
|
||||||
|
|
|
@ -1443,5 +1443,3 @@ TypeTraitExpr *TypeTraitExpr::CreateDeserialized(const ASTContext &C,
|
||||||
void *Mem = C.Allocate(totalSizeToAlloc<TypeSourceInfo *>(NumArgs));
|
void *Mem = C.Allocate(totalSizeToAlloc<TypeSourceInfo *>(NumArgs));
|
||||||
return new (Mem) TypeTraitExpr(EmptyShell());
|
return new (Mem) TypeTraitExpr(EmptyShell());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArrayTypeTraitExpr::anchor() {}
|
|
||||||
|
|
Loading…
Reference in New Issue