diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-24 12:32:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-24 12:32:18 +0200 |
commit | 466ee86cabe049ddaa873b831a895386162cb3aa (patch) | |
tree | 525e220b08837a5e576596459f57739d4f0540ae /compilerplugins | |
parent | 229b8f91228e195fa2613486447c02260c5844e5 (diff) |
Clang trunk compat fix
Change-Id: Ic414ad0416e27e223ff702996b796b68d39709b9
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/returnbyref.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/returnbyref.cxx b/compilerplugins/clang/returnbyref.cxx index a386b5d349cd..b5f32eef5cc5 100644 --- a/compilerplugins/clang/returnbyref.cxx +++ b/compilerplugins/clang/returnbyref.cxx @@ -10,6 +10,7 @@ #include <string> #include <set> +#include "compat.hxx" #include "plugin.hxx" // Find places where we are returning a pointer to something, where we can be returning a reference. @@ -56,7 +57,7 @@ bool ReturnByRef::VisitCXXMethodDecl(const CXXMethodDecl * functionDecl) { functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) { return true; } - QualType t1 { functionDecl->getResultType() }; + QualType t1 { compat::getReturnType(*functionDecl) }; if (!t1->isPointerType()) { return true; } |