Skip to content

Commit 05ca219

Browse files
committed
PR Feedback: mark DominatorTreeBase::addRoot inline
1 parent def5ca7 commit 05ca219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/GenericDomTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ class DominatorTreeBase {
918918
}
919919

920920
protected:
921-
void addRoot(NodeT *BB) { this->Roots.push_back(BB); }
921+
inline void addRoot(NodeT *BB) { this->Roots.push_back(BB); }
922922

923923
DomTreeNodeBase<NodeT> *createNode(NodeT *BB,
924924
DomTreeNodeBase<NodeT> *IDom = nullptr) {

0 commit comments

Comments
 (0)