[flang-commits] [flang] c8c5256 - [Flang] Remove unused triple variable. NFC (#77275)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 8 03:48:39 PST 2024


Author: Luke Lau
Date: 2024-01-08T18:48:35+07:00
New Revision: c8c525678e6dab2796c1996e0cdea31d4a865a9d

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

LOG: [Flang] Remove unused triple variable. NFC (#77275)

I'm not sure why we don't get an unused variable warning, but triple
doesn't
seem to be used after 898db1136e679.

Added: 
    

Modified: 
    flang/lib/Frontend/FrontendActions.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/FrontendActions.cpp b/flang/lib/Frontend/FrontendActions.cpp
index d4a3e164d20739..1f8174bdcf220c 100644
--- a/flang/lib/Frontend/FrontendActions.cpp
+++ b/flang/lib/Frontend/FrontendActions.cpp
@@ -743,9 +743,6 @@ void CodeGenAction::generateLLVMIR() {
 
   MLIRToLLVMPassPipelineConfig config(level, opts);
 
-  const auto targetOpts = ci.getInvocation().getTargetOpts();
-  const llvm::Triple triple(targetOpts.triple);
-
   if (auto vsr = getVScaleRange(ci)) {
     config.VScaleMin = vsr->first;
     config.VScaleMax = vsr->second;


        


More information about the flang-commits mailing list