[llvm] [Analysis] Drop const from a return type (NFC) (PR #147098)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 12:30:36 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147098

We don't need const on a return type.


>From 0967080c271238f95f369bd831a58be407529bfe Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 3 Jul 2025 22:33:14 -0700
Subject: [PATCH] [Analysis] Drop const from a return type (NFC)

We don't need const on a return type.
---
 llvm/lib/Analysis/ConstantFolding.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index af955f202ac28..6e469c034d9c8 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1963,7 +1963,7 @@ inline bool llvm_fenv_testexcept() {
   return false;
 }
 
-static const APFloat FTZPreserveSign(const APFloat &V) {
+static APFloat FTZPreserveSign(const APFloat &V) {
   if (V.isDenormal())
     return APFloat::getZero(V.getSemantics(), V.isNegative());
   return V;



More information about the llvm-commits mailing list