Skip to content

Commit

Permalink
Use hasFlag instead of hasArg
Browse files Browse the repository at this point in the history
Summary: Fix the build to use hasFlag instead of hasArg for checking some flags.

Reviewers: echristo

Subscribers: mehdi_amini, cfe-commits

Differential Revision: http://reviews.llvm.org/D22338

llvm-svn: 275377
  • Loading branch information
deanberris committed Jul 14, 2016
1 parent 17e8ea1 commit 25a1564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Driver/Tools.cpp
Expand Up @@ -4609,8 +4609,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,

Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions);

if (Args.hasArg(options::OPT_fxray_instrument,
options::OPT_fnoxray_instrument, false)) {
if (Args.hasFlag(options::OPT_fxray_instrument,
options::OPT_fnoxray_instrument, false)) {
CmdArgs.push_back("-fxray-instrument");
if (Arg *A = Args.getLastArg(options::OPT_fxray_instruction_threshold_,
options::OPT_fxray_instruction_threshold_EQ)) {
Expand Down

0 comments on commit 25a1564

Please sign in to comment.