| commit | 4eca9b93720b8f5746159eed43a0b3c0bf496db0 | [log] [tgz] |
|---|---|---|
| author | Richard Smith <richard-llvm@metafoo.co.uk> | Wed Feb 04 23:37:59 2015 +0000 |
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | Wed Feb 04 23:37:59 2015 +0000 |
| tree | 6bef588cf2e4f659f1dc6daf772ec5b19b14e43e | |
| parent | 712d5c393b7d5d336e60b528788e3f2e46bb8777 [diff] |
[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