Skip to content
Snippets Groups Projects
Commit 0c6c783d authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[objcmt] Don't wrap a PCH generation action with a ObjCMigrateAction one, it...

[objcmt] Don't wrap a PCH generation action with a ObjCMigrateAction one, it messes up the PCH file.

rdar://16941811

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209059 91177308-0d34-0410-b5e6-96231b3b80d8
parent ac3a79c4
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,8 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { ...@@ -144,7 +144,8 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
#endif #endif
#ifdef CLANG_ENABLE_ARCMT #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. // Potentially wrap the base FE action in an ARC Migrate Tool action.
switch (FEOpts.ARCMTAction) { switch (FEOpts.ARCMTAction) {
case FrontendOptions::ARCMT_None: case FrontendOptions::ARCMT_None:
......
// RUN: rm -rf %t-mcp
// RUN: %clang_cc1 -objcmt-migrate-subscripting -emit-pch -o %t.pch %s -isysroot %S/../Modules/Inputs/System -triple x86_64-apple-darwin10 -F %S/../Modules/Inputs -fmodules -fmodules-cache-path=%t-mcp -w
// RUN: %clang_cc1 -objcmt-migrate-subscripting -include-pch %t.pch %s -migrate -o %t.remap -isysroot %S/../Modules/Inputs/System -triple x86_64-apple-darwin10 -F %S/../Modules/Inputs -fmodules -fmodules-cache-path=%t-mcp
#ifndef HEADER
#define HEADER
@import Module;
#else
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment