[clang] [CIR][NFC] Fix typo in ComplexRangeKind comment (PR #152535)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 08:44:35 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clangir

Author: Amr Hesham (AmrDeveloper)

<details>
<summary>Changes</summary>

Fix typo in ComplexRangeKind comment

Catched in https://github.com/llvm/clangir/pull/1779

---
Full diff: https://github.com/llvm/llvm-project/pull/152535.diff


1 Files Affected:

- (modified) clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp (+1-1) 


``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
index c22cf607df7d8..a6b3bb0c37cef 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
@@ -776,7 +776,7 @@ getComplexRangeAttr(LangOptions::ComplexRangeKind range) {
   case LangOptions::CX_Basic:
     return cir::ComplexRangeKind::Basic;
   case LangOptions::CX_None:
-    // The default value for ComplexRangeKind is Full is no option is selected
+    // The default value for ComplexRangeKind is Full if no option is selected
     return cir::ComplexRangeKind::Full;
   }
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/152535


More information about the cfe-commits mailing list