[llvm] r370914 - [Attributor] Ensure AAIsDead correctly overrides getIRPosition
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 09:01:09 PDT 2019
Author: rksimon
Date: Wed Sep 4 09:01:09 2019
New Revision: 370914
URL: http://llvm.org/viewvc/llvm-project?rev=370914&view=rev
Log:
[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
Modified:
llvm/trunk/include/llvm/Transforms/IPO/Attributor.h
Modified: llvm/trunk/include/llvm/Transforms/IPO/Attributor.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO/Attributor.h?rev=370914&r1=370913&r2=370914&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO/Attributor.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO/Attributor.h Wed Sep 4 09:01:09 2019
@@ -1418,8 +1418,8 @@ struct AAIsDead : public StateWrapper<Bo
/// 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.
More information about the llvm-commits
mailing list