File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,9 @@ class LLVM_ABI MCTargetExpr : public MCExpr {
506
506
// / Extension point for target-specific MCExpr subclasses with a relocation
507
507
// / specifier, serving as a replacement for MCSymbolRefExpr::VariantKind.
508
508
// / Limit this to top-level use, avoiding its inclusion as a subexpression.
509
+ // /
510
+ // / NOTE: All subclasses are required to have trivial destructors because
511
+ // / MCExprs are bump pointer allocated and not destructed.
509
512
class LLVM_ABI MCSpecifierExpr : public MCExpr {
510
513
protected:
511
514
using Spec = uint16_t ;
@@ -516,7 +519,7 @@ class LLVM_ABI MCSpecifierExpr : public MCExpr {
516
519
protected:
517
520
explicit MCSpecifierExpr (const MCExpr *Expr, Spec S)
518
521
: MCExpr(Specifier, SMLoc()), Expr(Expr), specifier(S) {}
519
- virtual ~MCSpecifierExpr ();
522
+ virtual ~MCSpecifierExpr () = default ;
520
523
521
524
public:
522
525
Spec getSpecifier () const { return specifier; }
Original file line number Diff line number Diff line change @@ -767,8 +767,6 @@ MCFragment *MCExpr::findAssociatedFragment() const {
767
767
llvm_unreachable (" Invalid assembly expression kind!" );
768
768
}
769
769
770
- MCSpecifierExpr::~MCSpecifierExpr () {}
771
-
772
770
bool MCSpecifierExpr::evaluateAsRelocatableImpl (MCValue &Res,
773
771
const MCAssembler *Asm) const {
774
772
if (!getSubExpr ()->evaluateAsRelocatable (Res, Asm))
You can’t perform that action at this time.
0 commit comments