[clang][ASTImporter] Not using consumeError at failed import of in-class initializer.
authorBalázs Kéri <1.int32@gmail.com>
Thu, 7 Apr 2022 08:31:09 +0000 (10:31 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Thu, 7 Apr 2022 09:07:15 +0000 (11:07 +0200)
commit5479174071ec7d4692959bbdc15b5bb79e268e00
treec57e5b80fbcbf9fdb0f2ea84d547c2fe294a7ea8
parent817df7999a71a5dbda0025b75612b54160fb5f9c
[clang][ASTImporter] Not using consumeError at failed import of in-class initializer.

The error can be returned from the function, the problem written in comment before
does not exist. The same is done already in ASTImporter at various import failures.

After a declaration is created in an `ASTNodeImporter` import function
with `GetImportedOrCreateDecl`, that function registers it with
`MapImported`. At many places import errors can happen after this
and the error is returned. The same can be done in the place where
the in-class initializer is imported.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D122528
clang/lib/AST/ASTImporter.cpp