Richard Smith a21c8e14b6 When preprocessing with -frewrite-imports and -fmodule-file=, do not pass all
modules to preprocessing of nested .pcm files.

Making those module files available results in loading more .pcm files than
necessary, and potentially in misbehavior if a module makes itself visible
during its own compilation (as parts of that module that have not yet been
processed would then become visible).

llvm-svn: 306320
2017-06-26 19:39:25 +00:00

10 lines
134 B
C

#include "other.h"
#ifndef FILE_H
#define FILE_H
struct __FILE;
#include "fwd.h"
typedef struct __FILE FILE;
typedef foo bar;
#endif