diff options
Diffstat (limited to 'compilerplugins/clang/unusedmethods.cxx')
-rw-r--r-- | compilerplugins/clang/unusedmethods.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index 7de434d9b887..0ff053af6943 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -12,6 +12,9 @@ #include <iostream> #include <fstream> #include <set> + +#include "clang/AST/Attr.h" + #include "plugin.hxx" #include "compat.hxx" @@ -265,7 +268,7 @@ gotfunc: } // Now do the checks necessary for the "unused return value" analysis - if (calleeFunctionDecl->getReturnType()->isVoidType()) { + if (compat::getReturnType(*calleeFunctionDecl)->isVoidType()) { return true; } if (!parent) { |