labath created this revision. labath added a reviewer: akyrtzi. labath added a subscriber: cfe-commits.
ASTImporter was importing this attribute only on destructor and constructor decls, as they take it in the constructor, but other decls can have this attribute as well, notably the global operator new. Make sure we import the attribute on all FunctionDecls. http://reviews.llvm.org/D17845 Files: lib/AST/ASTImporter.cpp Index: lib/AST/ASTImporter.cpp =================================================================== --- lib/AST/ASTImporter.cpp +++ lib/AST/ASTImporter.cpp @@ -2922,6 +2922,7 @@ ToFunction->setVirtualAsWritten(D->isVirtualAsWritten()); ToFunction->setTrivial(D->isTrivial()); ToFunction->setPure(D->isPure()); + ToFunction->setImplicit(D->isImplicit()); Importer.Imported(D, ToFunction); // Set the parameters.
Index: lib/AST/ASTImporter.cpp =================================================================== --- lib/AST/ASTImporter.cpp +++ lib/AST/ASTImporter.cpp @@ -2922,6 +2922,7 @@ ToFunction->setVirtualAsWritten(D->isVirtualAsWritten()); ToFunction->setTrivial(D->isTrivial()); ToFunction->setPure(D->isPure()); + ToFunction->setImplicit(D->isImplicit()); Importer.Imported(D, ToFunction); // Set the parameters.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits