diff --git a/clang/lib/AST/ByteCode/Compiler.h b/clang/lib/AST/ByteCode/Compiler.h index f34809cd0f14c..884ff9336de2b 100644 --- a/clang/lib/AST/ByteCode/Compiler.h +++ b/clang/lib/AST/ByteCode/Compiler.h @@ -115,8 +115,8 @@ enum class ScopeKind { Block, FullExpression, Call }; /// Compilation context for expressions. template -class Compiler : public ConstStmtVisitor, bool>, - public Emitter { +class Compiler final : public ConstStmtVisitor, bool>, + public Emitter { protected: // Aliases for types defined in the emitter. using LabelTy = typename Emitter::LabelTy;