[Lldb-commits] [lldb] r118638 - /lldb/trunk/source/Symbol/ClangASTContext.cpp

Sean Callanan scallanan at apple.com
Tue Nov 9 14:37:10 PST 2010


Author: spyffe
Date: Tue Nov  9 16:37:10 2010
New Revision: 118638

URL: http://llvm.org/viewvc/llvm-project?rev=118638&view=rev
Log:
Added a named container for the source QualType
in the type copy routine to make type problems
easier to debug.

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=118638&r1=118637&r2=118638&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Tue Nov  9 16:37:10 2010
@@ -733,8 +733,11 @@
     ASTImporter importer(diagnostics,
                          *dest_context, file_manager,
                          *source_context, file_manager);
-    QualType ret = importer.Import(QualType::getFromOpaquePtr(clang_type));
-    return ret.getAsOpaquePtr();
+    
+    QualType src = QualType::getFromOpaquePtr(clang_type);
+    QualType dst = importer.Import(src);
+    
+    return dst.getAsOpaquePtr();
 }
 
 bool





More information about the lldb-commits mailing list