]> granicus.if.org Git - clang/commit
[ASTImporter] Improve import of FileID.
authorBalazs Keri <1.int32@gmail.com>
Wed, 27 Feb 2019 16:31:48 +0000 (16:31 +0000)
committerBalazs Keri <1.int32@gmail.com>
Wed, 27 Feb 2019 16:31:48 +0000 (16:31 +0000)
commit128411fb1722b87a4bea45913b42dc511d9c1b5d
tree6bed4a24e2c2b92c43ecd63cb2051a74ec8f5849
parentf1cb31ff8997bec210bcd663cb8e78d22a96a1bd
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355000 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp