From 3a1b40925486c1eea80e2a0e636b208435487daf Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Wed, 30 Nov 2022 10:33:22 +0000 Subject: [flang] fix unused variables --- flang/lib/Frontend/CompilerInvocation.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'flang/lib/Frontend/CompilerInvocation.cpp') 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; } -- cgit v1.1