summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-05-17 04:35:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-05-17 04:35:12 +0000
commitd4d553403492e1032e90813879763a0129770ffe (patch)
tree5fde8e9bd947bcf32ef0cb36922157f28b75b8d8 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent2476759673e51c897fc928e2a8af226898859509 (diff)
downloadbcm5719-llvm-d4d553403492e1032e90813879763a0129770ffe.tar.gz
bcm5719-llvm-d4d553403492e1032e90813879763a0129770ffe.zip
[objcmt] Don't wrap a PCH generation action with a ObjCMigrateAction one, it messes up the PCH file.
rdar://16941811 llvm-svn: 209059
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 3d7a83d4b38..0d3bd7edac0 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -144,7 +144,8 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
#endif
#ifdef CLANG_ENABLE_ARCMT
- if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource) {
+ if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource &&
+ CI.getFrontendOpts().ProgramAction != frontend::GeneratePCH) {
// Potentially wrap the base FE action in an ARC Migrate Tool action.
switch (FEOpts.ARCMTAction) {
case FrontendOptions::ARCMT_None:
OpenPOWER on IntegriCloud