projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
443e734
)
[Attributor] Add override keyword to the print function of AA
author
Luofan Chen
<clfbbn@gmail.com>
Tue, 28 Jul 2020 11:19:23 +0000
(19:19 +0800)
committer
Luofan 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Transforms/IPO/Attributor.h
b/llvm/include/llvm/Transforms/IPO/Attributor.h
index
48c65c3
..
a8076d3
100644
(file)
--- 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.
///{
- v
irtual void print(raw_ostream &OS) const
;
+ v
oid print(raw_ostream &OS) const override
;
virtual void printWithDeps(raw_ostream &OS) const;
void dump() const { print(dbgs()); }