Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.

llvm-svn: 95876
This commit is contained in:
Daniel Dunbar 2010-02-11 17:33:45 +00:00
parent 932c2f2a9a
commit bcd554f908
1 changed files with 2 additions and 1 deletions

View File

@ -1746,7 +1746,8 @@ void darwin::Compile::ConstructJob(Compilation &C, const JobAction &JA,
else if (Output.getType() == types::TY_AST)
D.Diag(clang::diag::err_drv_no_ast_support)
<< getToolChain().getTripleString();
else if (JA.getType() != types::TY_PP_Asm)
else if (JA.getType() != types::TY_PP_Asm &&
JA.getType() != types::TY_PCH)
D.Diag(clang::diag::err_drv_invalid_gcc_output_type)
<< getTypeName(JA.getType());