[flang-commits] [flang] c4ed95c - [Flang] Fix leftover use of 'OPT_nogpulib'

Joseph Huber via flang-commits flang-commits at lists.llvm.org
Thu Feb 13 06:14:17 PST 2025


Author: Joseph Huber
Date: 2025-02-13T08:14:12-06:00
New Revision: c4ed95c85bf8ef900cff6444f8f3c97495b1b7bc

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

LOG: [Flang] Fix leftover use of 'OPT_nogpulib'

Summary:
This didn't show up as a failure in precommit and I don't build flang so
this slipped by.

Added: 
    

Modified: 
    flang/lib/Frontend/CompilerInvocation.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 3eb413e8a62a9..d4d39713f2787 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -1092,7 +1092,7 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
           args.hasArg(clang::driver::options::OPT_fopenmp_target_debug))
         res.getLangOpts().OpenMPTargetDebug = 1;
     }
-    if (args.hasArg(clang::driver::options::OPT_nogpulib))
+    if (args.hasArg(clang::driver::options::OPT_no_offloadlib))
       res.getLangOpts().NoGPULib = 1;
   }
 


        


More information about the flang-commits mailing list