From ea09a44ceb6faaf9d3a26cf6582fb5b7f0bc3516 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 29 Nov 2012 00:50:56 +0000 Subject: [PATCH] Don't return decorated (i.e., const or pointer) versions of UnknownAnyTy for ObjectiveC value types. * makes no sense and can cause the parser to behave very oddly. llvm-svn: 168844 --- .../LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp index 69f4209..4e2280a 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp @@ -422,6 +422,8 @@ private: clang::QualType target_type = BuildType(ast_ctx, type+1); if (target_type.isNull()) return clang::QualType(); + else if (target_type == ast_ctx.UnknownAnyTy) + return ast_ctx.UnknownAnyTy; else return ast_ctx.getConstType(target_type); } @@ -430,6 +432,8 @@ private: clang::QualType target_type = BuildType(ast_ctx, type+1); if (target_type.isNull()) return clang::QualType(); + else if (target_type == ast_ctx.UnknownAnyTy) + return ast_ctx.UnknownAnyTy; else return ast_ctx.getPointerType(target_type); } -- 2.7.4