Fixed a bug which would trigger an assert() in LLDB;

we were setting a forward-declared Objective-C class
type as being completed using an ExternalSemaSource,
but this is neither legal nor necessary.

llvm-svn: 123671
This commit is contained in:
Sean Callanan 2011-01-17 20:50:38 +00:00
parent 69e6206b19
commit 865267f9d4
1 changed files with 2 additions and 2 deletions

View File

@ -1083,8 +1083,8 @@ ClangASTContext::SetHasExternalStorage (clang_type_t clang_type, bool has_extern
if (class_interface_decl)
{
if (has_extern)
class_interface_decl->setExternallyCompleted();
//if (has_extern)
// class_interface_decl->setExternallyCompleted();
class_interface_decl->setHasExternalLexicalStorage (has_extern);
//class_interface_decl->setHasExternalVisibleStorage (has_extern);
return true;