summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unreffun.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unreffun.cxx')
-rw-r--r--compilerplugins/clang/unreffun.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/compilerplugins/clang/unreffun.cxx b/compilerplugins/clang/unreffun.cxx
index e5ea7f34ee38..3321037c8580 100644
--- a/compilerplugins/clang/unreffun.cxx
+++ b/compilerplugins/clang/unreffun.cxx
@@ -78,14 +78,13 @@ public:
friendFunction.push( dyn_cast_or_null<FunctionDecl>(decl->getFriendDecl()));
return true;
}
- bool PostTraverseFriendDecl(FriendDecl *, bool ) {
+ void PostTraverseFriendDecl(FriendDecl *) {
friendFunction.pop();
- return true;
}
bool TraverseFriendDecl(FriendDecl * decl) {
PreTraverseFriendDecl(decl);
auto const ret = RecursiveASTVisitor::TraverseFriendDecl(decl);
- PostTraverseFriendDecl(decl, ret);
+ PostTraverseFriendDecl(decl);
return ret;
}