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

via flang-commits flang-commits at lists.llvm.org
Sun Jan 7 22:30:19 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: Luke Lau (lukel97)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/77275.diff


1 Files Affected:

- (modified) flang/lib/Frontend/FrontendActions.cpp (-3) 


``````````diff
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;

``````````

</details>


https://github.com/llvm/llvm-project/pull/77275


More information about the flang-commits mailing list