[flang-commits] [flang] [flang][NFC] Remove dead declarations and fix include guard (PR #219961)
via flang-commits
flang-commits at lists.llvm.org
Mon Aug 31 05:54:49 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: Mattéo Rizza Murgier (matteo-rm)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/219961.diff
1 Files Affected:
- (modified) flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h (+3-10)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/219961
More information about the flang-commits
mailing list