]> granicus.if.org Git - clang/commitdiff
Fix inverted return value in the ASTImporter. No matter how much LLVM
authorDouglas Gregor <dgregor@apple.com>
Thu, 2 Dec 2010 19:33:37 +0000 (19:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 2 Dec 2010 19:33:37 +0000 (19:33 +0000)
code I wrote, returning "true" on error is still unnatural.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTImporter.cpp

index 0628fea476d9e16548c57db4c1e8417a4afff2a7..e9bb3ad9606575da7fbe14c88393010e107f6e33 100644 (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(