There is currently a problem with our interaction
with the Clang parser that prevents us from passing
Objective-C types to functions that expect C types.
This quick hack keeps us in business until that
interaction is fixed.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113429 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 2f4440c..24eab33 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -955,6 +955,9 @@
     
     if (fun)
     {
+#define BROKEN_OVERLOADING
+        // Awaiting a fix on the Clang side
+#ifndef BROKEN_OVERLOADING
         Type *fun_type = fun->GetType();
         
         if (!fun_type) 
@@ -980,6 +983,11 @@
         void *copied_type = ClangASTContext::CopyType(context.GetASTContext(), fun_ast_context, fun_opaque_type);
         
         fun_decl = context.AddFunDecl(copied_type);
+#else
+        fun_address = &fun->GetAddressRange().GetBaseAddress();
+        
+        fun_decl = context.AddGenericFunDecl();
+#endif
     }
     else if (symbol)
     {