From 272f9e8944765302f7663ef5834233ac163eff4c Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 4 Sep 2019 16:01:09 +0000 Subject: [PATCH] [Attributor] Ensure AAIsDead correctly overrides getIRPosition As commented on D65712, the getIRPosition methods weren't correctly being overridden. Differential Revision: https://reviews.llvm.org/D67170 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370914 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/IPO/Attributor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Transforms/IPO/Attributor.h b/include/llvm/Transforms/IPO/Attributor.h index e80f3d109d6..b511d1125d0 100644 --- a/include/llvm/Transforms/IPO/Attributor.h +++ b/include/llvm/Transforms/IPO/Attributor.h @@ -1418,8 +1418,8 @@ struct AAIsDead : public StateWrapper, /// Return an IR position, see struct IRPosition. /// ///{ - IRPosition &getIRPosition() { return *this; } - const IRPosition &getIRPosition() const { return *this; } + IRPosition &getIRPosition() override { return *this; } + const IRPosition &getIRPosition() const override { return *this; } ///} /// Create an abstract attribute view for the position \p IRP. -- 2.50.1