[Attributor] Add override keyword to the print function of AA
authorLuofan Chen <clfbbn@gmail.com>
Tue, 28 Jul 2020 11:19:23 +0000 (19:19 +0800)
committerLuofan Chen <clfbbn@gmail.com>
Tue, 28 Jul 2020 11:25:20 +0000 (19:25 +0800)
The print() function in the `AbstractAttribute` structure overrides
the function in the `AADepGraphNode`, so we need to mark it as
override.

This should fix a buildbot failure introduced by 5ee07dc.

llvm/include/llvm/Transforms/IPO/Attributor.h

index 48c65c3..a8076d3 100644 (file)
@@ -2138,7 +2138,7 @@ struct AbstractAttribute : public IRPosition, public AADepGraphNode {
 
   /// Helper functions, for debug purposes only.
   ///{
-  virtual void print(raw_ostream &OS) const;
+  void print(raw_ostream &OS) const override;
   virtual void printWithDeps(raw_ostream &OS) const;
   void dump() const { print(dbgs()); }