[ASTImporter][Structural Eq] Check for isBeingDefined
authorGabor Marton <martongabesz@gmail.com>
Mon, 26 Nov 2018 15:54:08 +0000 (15:54 +0000)
committerGabor Marton <martongabesz@gmail.com>
Mon, 26 Nov 2018 15:54:08 +0000 (15:54 +0000)
commit17d39677e015e8c4398949dd089dfd3fab136222
tree6eda57ab79df6ebb1128b0cc8fc2751db5e74659
parent4d3d82eef96e10a54e3d0bf367d8e10917ca8662
[ASTImporter][Structural Eq] Check for isBeingDefined

Summary:
If one definition is currently being defined, we do not compare for
equality and we assume that the decls are equal.

Reviewers: a_sidorin, a.sidorin, shafik

Reviewed By: a_sidorin

Subscribers: gamesh411, shafik, rnkovacs, dkrupp, Szelethus, cfe-commits

Differential Revision: https://reviews.llvm.org/D53697

llvm-svn: 347564
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ASTStructuralEquivalence.cpp
clang/unittests/AST/ASTImporterTest.cpp