aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/CXTypes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libclang/CXTypes.cpp')
-rw-r--r--tools/libclang/CXTypes.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libclang/CXTypes.cpp b/tools/libclang/CXTypes.cpp
index 28dc12a344..137370adb2 100644
--- a/tools/libclang/CXTypes.cpp
+++ b/tools/libclang/CXTypes.cpp
@@ -173,6 +173,9 @@ CXCursor clang_getTypeDeclaration(CXType CT) {
case Type::Typedef:
D = cast<TypedefType>(TP)->getDecl();
break;
+ case Type::ObjCObject:
+ D = cast<ObjCObjectType>(TP)->getInterface();
+ break;
case Type::ObjCInterface:
D = cast<ObjCInterfaceType>(TP)->getDecl();
break;