[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Sep 29 08:44:50 UTC 2017
compilerplugins/clang/unusedfields.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4ab071b5b57859df4d7740c4f28618e6bc7abc23
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Sep 29 10:44:22 2017 +0200
More clang::*Type vs. llvm::*Type ambiguities
Change-Id: I52373c32818234e376d855684635f9bf1012ed5e
diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx
index cb17d8526560..48cbb864d1d0 100644
--- a/compilerplugins/clang/unusedfields.cxx
+++ b/compilerplugins/clang/unusedfields.cxx
@@ -962,8 +962,8 @@ llvm::Optional<CalleeWrapper> UnusedFields::getCallee(CallExpr const * callExpr)
return CalleeWrapper(functionDecl);
// Extract the functionprototype from a type
- Type const * calleeType = callExpr->getCallee()->getType().getTypePtr();
- if (auto pointerType = calleeType->getUnqualifiedDesugaredType()->getAs<PointerType>()) {
+ clang::Type const * calleeType = callExpr->getCallee()->getType().getTypePtr();
+ if (auto pointerType = calleeType->getUnqualifiedDesugaredType()->getAs<clang::PointerType>()) {
if (auto prototype = pointerType->getPointeeType()->getUnqualifiedDesugaredType()->getAs<FunctionProtoType>()) {
return CalleeWrapper(prototype);
}
More information about the Libreoffice-commits
mailing list