HomePhabricator

[ASTImporter] Improve import of FileID.

Description

[ASTImporter] Improve import of FileID.

Summary:
Even if the content cache has a directory and filename, it may be a virtual file.
The old code returned with error in this case, but it is worth to try to handle
the file as it were a memory buffer.

Reviewers: a.sidorin, shafik, martong, a_sidorin

Reviewed By: shafik

Subscribers: efriedma, rnkovacs, cfe-commits, dkrupp, martong, Szelethus, gamesh411

Tags: #clang

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

Details

Committed
balazskeFeb 27 2019, 8:31 AM
Reviewer
shafik
Differential Revision
D57590: [ASTImporter] Improve import of FileID.
Branches
Unknown
Tags
Unknown