diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-06 14:23:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-06 19:38:13 +0000 |
commit | 22fb58a6fa7764ec0045529c483693e1a81b488e (patch) | |
tree | 01d5d98d6ff63fa4f6ed22621898eedee24d018c /compilerplugins/clang/stringconstant.cxx | |
parent | 24db02dc8d771b8aa722d0fa2a410635b5179e35 (diff) |
compilerplugins: getAsTagDecl doesn't exist in clang 3.5
Change-Id: If7277820227486e2eb578a167e0fd9f05c8f74ae
Reviewed-on: https://gerrit.libreoffice.org/19823
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'compilerplugins/clang/stringconstant.cxx')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 8fbed25a975f..56ae27c90bc5 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -235,7 +235,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { && t->isClassType() && t->getAs<SubstTemplateTypeParmType>() == nullptr) { - auto td = t->getAsTagDecl(); + auto td = compat::getAsTagDecl(*t); auto id = td->getIdentifier(); if (id != nullptr && id->isStr("OUString")) { auto nd = dyn_cast<NamespaceDecl>(td->getParent()); |