[flang-commits] [flang] [flang][nfc] fix typo in fir.declare_value description (PR #182505)

via flang-commits flang-commits at lists.llvm.org
Fri Feb 20 06:36:07 PST 2026


https://github.com/jeanPerier created https://github.com/llvm/llvm-project/pull/182505

Fix typo from https://github.com/llvm/llvm-project/pull/181848#discussion_r2832803471

Thanks for the review of the previous PR @abidh. 

>From 968f013f9015de98b987910633547c674cad9a19 Mon Sep 17 00:00:00 2001
From: Jean Perier <jperier at nvidia.com>
Date: Fri, 20 Feb 2026 06:33:43 -0800
Subject: [PATCH] [flang][nfc] fix typo in fir.declare_value description

---
 flang/include/flang/Optimizer/Dialect/FIROps.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td
index 142bc98c134f5..2a849a98903e6 100644
--- a/flang/include/flang/Optimizer/Dialect/FIROps.td
+++ b/flang/include/flang/Optimizer/Dialect/FIROps.td
@@ -3490,7 +3490,7 @@ def fir_DeclareValueOp
     relatively to the operation using the value of the variable,
     this means that the when a mem2reg variable was assigned several
     values, the variable value printed in the debugger at a given code
-    point main not be the actual value the variable had at that code point
+    point may not be the actual value the variable had at that code point
     if instructions using the value were moved above the fir.declare_value.
   }];
 



More information about the flang-commits mailing list