summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-06-21 16:28:10 +0000
committerDouglas Gregor <dgregor@apple.com>2013-06-21 16:28:10 +0000
commit963c5535649dc049547853ebd3ad33ea17d2ae04 (patch)
tree6683284f7683184e0486aff7371494fdfd73d51a /clang/lib/Frontend/CompilerInstance.cpp
parentdd08c5931715d38ca2e5233c252507bf92adee06 (diff)
downloadbcm5719-llvm-963c5535649dc049547853ebd3ad33ea17d2ae04.tar.gz
bcm5719-llvm-963c5535649dc049547853ebd3ad33ea17d2ae04.zip
[Modules] If a module map resides in a system header directory, treat it as a system module.
This prevents -pedantic from causing warnings in the system headers used to create modules. Fixes <rdar://problem/14201171>. llvm-svn: 184560
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index a2872dd4f20..8011a8b6799 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -881,7 +881,7 @@ static void compileModule(CompilerInstance &ImportingInstance,
// Construct a module-generating action.
- GenerateModuleAction CreateModuleAction;
+ GenerateModuleAction CreateModuleAction(Module->IsSystem);
// Execute the action to actually build the module in-place. Use a separate
// thread so that we get a stack large enough.
OpenPOWER on IntegriCloud