From 0e0dea82681a86a09ceed0afd321367a35bfa051 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 11 Nov 2019 18:51:14 +0000 Subject: [PATCH] Add missing override modifiers for FileCheckExpressionAST::eval() overrides. --- llvm/lib/Support/FileCheckImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Support/FileCheckImpl.h b/llvm/lib/Support/FileCheckImpl.h index 0fd8523..eee653a 100644 --- a/llvm/lib/Support/FileCheckImpl.h +++ b/llvm/lib/Support/FileCheckImpl.h @@ -51,7 +51,7 @@ public: FileCheckExpressionLiteral(uint64_t Val) : Value(Val) {} /// \returns the literal's value. - Expected eval() const { return Value; } + Expected eval() const override { return Value; } }; /// Class to represent an undefined variable error, which quotes that @@ -133,7 +133,7 @@ public: : Name(Name), NumericVariable(NumericVariable) {} /// \returns the value of the variable referenced by this instance. - Expected eval() const; + Expected eval() const override; }; /// Type of functions evaluating a given binary operation. @@ -164,7 +164,7 @@ public: /// using EvalBinop on the result of recursively evaluating the operands. /// \returns the expression value or an error if an undefined numeric /// variable is used in one of the operands. - Expected eval() const; + Expected eval() const override; }; class FileCheckPatternContext; -- 2.7.4