diff options
author | Tom Eccles <tom.eccles@arm.com> | 2022-11-30 10:33:22 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2022-11-30 10:37:23 +0000 |
commit | 3a1b40925486c1eea80e2a0e636b208435487daf (patch) | |
tree | 27a7094791fb0261cddd50e23fabf21ceca8589c /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | b7f44f7cf92b75f0dd4fb5e372990a25acfe908d (diff) | |
download | llvm-3a1b40925486c1eea80e2a0e636b208435487daf.zip llvm-3a1b40925486c1eea80e2a0e636b208435487daf.tar.gz llvm-3a1b40925486c1eea80e2a0e636b208435487daf.tar.bz2 |
[flang] fix unused variables
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index c065485..b8f4ad7 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -696,33 +696,27 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, opts.setFPContractMode(fpContractMode); } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_menable_no_infinities)) { + if (args.getLastArg(clang::driver::options::OPT_menable_no_infinities)) { opts.NoHonorInfs = true; } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_menable_no_nans)) { + if (args.getLastArg(clang::driver::options::OPT_menable_no_nans)) { opts.NoHonorNaNs = true; } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_fapprox_func)) { + if (args.getLastArg(clang::driver::options::OPT_fapprox_func)) { opts.ApproxFunc = true; } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_fno_signed_zeros)) { + if (args.getLastArg(clang::driver::options::OPT_fno_signed_zeros)) { opts.NoSignedZeros = true; } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_mreassociate)) { + if (args.getLastArg(clang::driver::options::OPT_mreassociate)) { opts.AssociativeMath = true; } - if (const llvm::opt::Arg *a = - args.getLastArg(clang::driver::options::OPT_freciprocal_math)) { + if (args.getLastArg(clang::driver::options::OPT_freciprocal_math)) { opts.ReciprocalMath = true; } |