diff options
| author | Dean Michael Berris <dberris@google.com> | 2016-07-14 06:37:46 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2016-07-14 06:37:46 +0000 |
| commit | 25a1564e6c37808c5e2c6d3ae6f76416be3d9536 (patch) | |
| tree | ad76592f31e5782ff436ee0247356eb8f7d823e9 /clang/lib/Driver | |
| parent | 17e8ea18e98bef862a2a65f71d9fba9a8f304be5 (diff) | |
| download | bcm5719-llvm-25a1564e6c37808c5e2c6d3ae6f76416be3d9536.tar.gz bcm5719-llvm-25a1564e6c37808c5e2c6d3ae6f76416be3d9536.zip | |
Use hasFlag instead of hasArg
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
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 5437ef8f5af..f1a9f41d539 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -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)) { |

