Have the parser initialize Sema before it consumes the first
authorDouglas Gregor <dgregor@apple.com>
Mon, 5 Nov 2012 23:58:27 +0000 (23:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 5 Nov 2012 23:58:27 +0000 (23:58 +0000)
commitd612566385cb20fb867af6d8d6e0c5f138a963d7
tree0175436a0bb676dbb4bb5a060517abdaaf6946ea
parent48c5b8e6592523b75202c0e3ab95c8acba2465aa
Have the parser initialize Sema before it consumes the first
token. This is important because the first token could actually be
after an #include that triggers a module import, which might use
either Sema or the AST consumer before it would have been initialized.

llvm-svn: 167423
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/Parse/ParseAST.cpp
clang/lib/Parse/Parser.cpp
clang/test/Modules/Inputs/Module.framework/Headers/Module.h
clang/test/Modules/direct-module-import.m [new file with mode: 0644]