[flang-commits] [flang] [flang][NFC] Remove dead declarations and fix include guard (PR #219961)
Mattéo Rizza Murgier via flang-commits
flang-commits at lists.llvm.org
Mon Aug 31 05:54:05 PDT 2026
https://github.com/matteo-rm created https://github.com/llvm/llvm-project/pull/219961
This PR fixes copy-paste artifacts in `Optimizer/Builder/Runtime/Intrinsics.h`.
NOTE: Modifying the include guard is NFC since the other header that used the same guard is never included at the same time.
>From 26fda7cfcff60bba3774c82fd9c35221e4fc80b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matt=C3=A9o=20Rizza=20Murgier?=
<matteo.rizza-murgier at sipearl.com>
Date: Mon, 31 Aug 2026 14:39:49 +0200
Subject: [PATCH] [flang][NFC] Remove dead declarations and fix include guard
---
.../flang/Optimizer/Builder/Runtime/Intrinsics.h | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h b/flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h
index d6f0f5051e219..da945efb6604c 100644
--- a/flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h
+++ b/flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h
@@ -13,14 +13,13 @@
//
//===----------------------------------------------------------------------===//
-#ifndef FORTRAN_LOWER_RUNTIME_H
-#define FORTRAN_LOWER_RUNTIME_H
+#ifndef FORTRAN_OPTIMIZER_BUILDER_RUNTIME_INTRINSICS_H
+#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_INTRINSICS_H
#include <optional>
namespace mlir {
class Location;
-class Type;
class Value;
} // namespace mlir
@@ -33,12 +32,6 @@ namespace runtime {
mlir::Value genAssociated(fir::FirOpBuilder &, mlir::Location,
mlir::Value pointer, mlir::Value target);
-void genPointerAssociate(fir::FirOpBuilder &, mlir::Location,
- mlir::Value pointer, mlir::Value target);
-void genPointerAssociateRemapping(fir::FirOpBuilder &, mlir::Location,
- mlir::Value pointer, mlir::Value target,
- mlir::Value bounds, bool isMonomorphic);
-
mlir::Value genCpuTime(fir::FirOpBuilder &, mlir::Location);
void genDateAndTime(fir::FirOpBuilder &, mlir::Location,
std::optional<fir::CharBoxValue> date,
@@ -126,4 +119,4 @@ void genShowDescriptor(fir::FirOpBuilder &builder, mlir::Location loc,
} // namespace runtime
} // namespace fir
-#endif // FORTRAN_LOWER_RUNTIME_H
+#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_INTRINSICS_H
More information about the flang-commits
mailing list