summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DocumentXML.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/DocumentXML.cpp')
-rw-r--r--clang/lib/Frontend/DocumentXML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DocumentXML.cpp b/clang/lib/Frontend/DocumentXML.cpp
index 6dcb6ae45a2..a6af2f8ecfa 100644
--- a/clang/lib/Frontend/DocumentXML.cpp
+++ b/clang/lib/Frontend/DocumentXML.cpp
@@ -161,7 +161,7 @@ void DocumentXML::finalize() {
if (const TagDecl *TD = dyn_cast<TagDecl>(i->first))
addAttribute("type", getPrefixedId(BasicTypes[TD->getTypeForDecl()], ID_NORMAL));
else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(i->first))
- addAttribute("type", getPrefixedId(BasicTypes[FD->getType()->getAsFunctionType()], ID_NORMAL));
+ addAttribute("type", getPrefixedId(BasicTypes[FD->getType()->getAs<FunctionType>()], ID_NORMAL));
if (const DeclContext* parent = i->first->getParent())
addAttribute("context", parent);
OpenPOWER on IntegriCloud