[llvm] 0f62a53 - [Attributor] Add override keyword to the print function of AA
Luofan Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 04:27:52 PDT 2020
Author: Luofan Chen
Date: 2020-07-28T19:25:20+08:00
New Revision: 0f62a53db64a943972e51d3d58610595d22779fd
URL: https://github.com/llvm/llvm-project/commit/0f62a53db64a943972e51d3d58610595d22779fd
DIFF: https://github.com/llvm/llvm-project/commit/0f62a53db64a943972e51d3d58610595d22779fd.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 48c65c37eec7..a8076d33018c 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()); }
More information about the llvm-commits
mailing list