Fix build by using hasFlag instead of hasArg.

llvm-svn: 261782
This commit is contained in:
Peter Collingbourne 2016-02-24 22:03:06 +00:00
parent 8ab0cfd5a7
commit ceef145ffa
1 changed files with 2 additions and 2 deletions

View File

@ -4270,8 +4270,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-ffunction-sections");
}
if (Args.hasArg(options::OPT_fwhole_program_vtables,
options::OPT_fno_whole_program_vtables, false)) {
if (Args.hasFlag(options::OPT_fwhole_program_vtables,
options::OPT_fno_whole_program_vtables, false)) {
if (!D.isUsingLTO())
D.Diag(diag::err_drv_argument_only_allowed_with)
<< "-fwhole-program-vtables"