[flang-commits] [flang] [Flang] Remove unused triple variable. NFC (PR #77275)
Luke Lau via flang-commits
flang-commits at lists.llvm.org
Sun Jan 7 22:29:49 PST 2024
https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/77275
I'm not sure why we don't get an unused variable warning, but triple doesn't
seem to be used after 898db1136e679.
>From 77a990decbe3ca107074b4bf6711a547e4316fbd Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Mon, 8 Jan 2024 13:27:30 +0700
Subject: [PATCH] [Flang] Remove unused triple variable. NFC
I'm not sure why we don't get an unused variable warning, but triple doesn't
seem to be used after 898db1136e679.
---
flang/lib/Frontend/FrontendActions.cpp | 3 ---
1 file changed, 3 deletions(-)
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