Fix from Jean-Daniel. Thanks.

Error in object runtime language detection code	(spurious '; ')
Also replace false by NULL in a place where the compiler expects a pointer instead of a bool.

llvm-svn: 114957
This commit is contained in:
Johnny Chen 2010-09-28 16:10:54 +00:00
parent a8298d3ba5
commit d440bccb16
2 changed files with 2 additions and 2 deletions

View File

@ -779,7 +779,7 @@ ValueObject::GetObjectRuntimeLanguage ()
{
if (ClangASTContext::IsObjCClassType (opaque_qual_type))
return lldb::eLanguageTypeObjC;
if (ClangASTContext::IsCXXClassType (opaque_qual_type));
if (ClangASTContext::IsCXXClassType (opaque_qual_type))
return lldb::eLanguageTypeC_plus_plus;
}

View File

@ -817,7 +817,7 @@ ClangASTContext::AddMethodToCXXRecordType
)
{
if (!record_opaque_type || !method_opaque_type || !name)
return false;
return NULL;
assert(ast_context);