Simplify.

llvm-svn: 102432
This commit is contained in:
Daniel Dunbar 2010-04-27 15:35:03 +00:00
parent 34d7a99062
commit 2cb4e7a872
1 changed files with 2 additions and 4 deletions

View File

@ -1258,10 +1258,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// -fshort-wchar default varies depending on platform; only
// pass if specified.
if (Arg *A = Args.getLastArg(options::OPT_fshort_wchar)) {
if (A->getOption().matches(options::OPT_fshort_wchar))
CmdArgs.push_back("-fshort-wchar");
}
if (Arg *A = Args.getLastArg(options::OPT_fshort_wchar))
A->render(Args, CmdArgs);
// -fno-pascal-strings is default, only pass non-default. If the tool chain
// happened to translate to -mpascal-strings, we want to back translate here.