]> granicus.if.org Git - clang/commit
[ASTImporter] Handle built-in when importing SourceLocation and FileID
authorShafik Yaghmour <syaghmour@apple.com>
Mon, 4 Mar 2019 20:25:54 +0000 (20:25 +0000)
committerShafik Yaghmour <syaghmour@apple.com>
Mon, 4 Mar 2019 20:25:54 +0000 (20:25 +0000)
commit2f3e65f35906044e5f7dcd39bcd119e63db29fc7
treef7fd799948d360e11d21af16f625e69623c88ac7
parent22faaea9697edcede1318f0f2afd5336df935d16
[ASTImporter] Handle built-in when importing SourceLocation and FileID

Summary:
Currently when we see a built-in we try and import the include location. Instead what we do now is find the buffer like we do for the invalid case and copy that over to the to context.

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

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