From b2befe47dc4067416729080bd4531af6197bc265 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 25 Sep 2019 14:23:25 +0000 Subject: [PATCH] Fix analyzer TypeAttributeImpl::anchor() override. TypeAttributeImpl inherits from EnumAttributeImpl which already defines anchor() as a virtual, so we should override this instead of redeclaring it. llvm-svn: 372877 --- llvm/lib/IR/AttributeImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index f989fa3..54e4463 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -159,7 +159,7 @@ public: }; class TypeAttributeImpl : public EnumAttributeImpl { - virtual void anchor(); + void anchor() override; Type *Ty; -- 2.7.4