Skip to content
Commit 4eca9b93 authored by Richard Smith's avatar Richard Smith
Browse files

[modules] When using -E, we may try to merge decls despite having no Sema

object. In such a case, use the TU's DC for merging global decls rather than
giving up when we find there is no TU scope.

Ultimately, we should probably avoid all loading of decls when preprocessing,
but there are other reasonable use cases for loading an AST file with no Sema
object for which this is the right thing.

llvm-svn: 228234
parent 712d5c39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment