diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-17 04:35:12 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-05-17 04:35:12 +0000 |
commit | d4d553403492e1032e90813879763a0129770ffe (patch) | |
tree | 5fde8e9bd947bcf32ef0cb36922157f28b75b8d8 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 2476759673e51c897fc928e2a8af226898859509 (diff) | |
download | bcm5719-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.cpp | 3 |
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: |