]> granicus.if.org Git - llvm/commitdiff
[Attributor] Ensure AAIsDead correctly overrides getIRPosition
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 4 Sep 2019 16:01:09 +0000 (16:01 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 4 Sep 2019 16:01:09 +0000 (16:01 +0000)
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

index e80f3d109d6a8aa152f6af12b2f28b83efd94545..b511d1125d09fa6e396362da0ba5c63726ba5be9 100644 (file)
@@ -1418,8 +1418,8 @@ struct AAIsDead : public StateWrapper<BooleanState, AbstractAttribute>,
   /// 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.