From: Luofan Chen Date: Tue, 28 Jul 2020 11:19:23 +0000 (+0800) Subject: [Attributor] Add override keyword to the print function of AA X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f62a53db64a943972e51d3d58610595d22779fd;p=platform%2Fupstream%2Fllvm.git [Attributor] Add override keyword to the print function of AA 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. --- diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h index 48c65c3..a8076d3 100644 --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -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()); }