Fix inverted return value in the ASTImporter. No matter how much LLVM

code I wrote, returning "true" on error is still unnatural.

llvm-svn: 120727
This commit is contained in:
Douglas Gregor 2010-12-02 19:33:37 +00:00
parent 20d0b2198b
commit 96303ea853
1 changed files with 2 additions and 2 deletions

View File

@ -1694,7 +1694,7 @@ bool ASTNodeImporter::ImportDefinition(RecordDecl *From, RecordDecl *To) {
++Base1) {
QualType T = Importer.Import(Base1->getType());
if (T.isNull())
return false;
return true;
Bases.push_back(
new (Importer.getToContext())
@ -1710,7 +1710,7 @@ bool ASTNodeImporter::ImportDefinition(RecordDecl *From, RecordDecl *To) {
ImportDeclContext(From);
To->completeDefinition();
return true;
return false;
}
TemplateParameterList *ASTNodeImporter::ImportTemplateParameterList(