From 042ac912b1e28784ddecb19c690561cc413f53d1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 26 Oct 2025 13:34:32 -0700 Subject: [llvm] Add "override" where appropriate (NFC) (#165168) Note that "override" makes "virtual" redundant. Identified with modernize-use-override. --- llvm/unittests/Transforms/Utils/ValueMapperTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/unittests/Transforms/Utils/ValueMapperTest.cpp') diff --git a/llvm/unittests/Transforms/Utils/ValueMapperTest.cpp b/llvm/unittests/Transforms/Utils/ValueMapperTest.cpp index 86ad41f..e39cd70 100644 --- a/llvm/unittests/Transforms/Utils/ValueMapperTest.cpp +++ b/llvm/unittests/Transforms/Utils/ValueMapperTest.cpp @@ -401,7 +401,8 @@ TEST(ValueMapperTest, mapValueLocalAsMetadataToConstant) { class TestTypeRemapper : public ValueMapTypeRemapper { public: TestTypeRemapper(Type *Ty) : DstTy(Ty) { } - Type *remapType(Type *srcTy) { return DstTy; } + Type *remapType(Type *srcTy) override { return DstTy; } + private: Type *DstTy; }; -- cgit v1.1