[flang-commits] [flang] 3a1b409 - [flang] fix unused variables

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed Nov 30 02:37:52 PST 2022


Author: Tom Eccles
Date: 2022-11-30T10:37:23Z
New Revision: 3a1b40925486c1eea80e2a0e636b208435487daf

URL: https://github.com/llvm/llvm-project/commit/3a1b40925486c1eea80e2a0e636b208435487daf
DIFF: https://github.com/llvm/llvm-project/commit/3a1b40925486c1eea80e2a0e636b208435487daf.diff

LOG: [flang] fix unused variables

Added: 
    

Modified: 
    flang/lib/Frontend/CompilerInvocation.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index c065485541c41..b8f4ad7326428 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;
   }
 


        


More information about the flang-commits mailing list