summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-29 10:44:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-29 10:44:22 +0200
commit4ab071b5b57859df4d7740c4f28618e6bc7abc23 (patch)
tree42653427ee43f2a1465f8aa9c09bcd02e3030f67 /compilerplugins
parenta3c2cce616c3a072ed7f7f8133b88db165ccbc5c (diff)
More clang::*Type vs. llvm::*Type ambiguities
Change-Id: I52373c32818234e376d855684635f9bf1012ed5e
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedfields.cxx4
1 files changed, 2 insertions, 2 deletions
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);
}