[clang] [NFC][Clang] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (PR #143253)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 7 06:33:38 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Rahul Joshi (jurahul)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h (+2-4) 


``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h b/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h
index 9886574fd463b..4f5754cb43986 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h
+++ b/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h
@@ -76,10 +76,8 @@ class CIRGenFunctionInfo final
 
   unsigned numArgs;
 
-  CanQualType *getArgTypes() { return getTrailingObjects<CanQualType>(); }
-  const CanQualType *getArgTypes() const {
-    return getTrailingObjects<CanQualType>();
-  }
+  CanQualType *getArgTypes() { return getTrailingObjects(); }
+  const CanQualType *getArgTypes() const { return getTrailingObjects(); }
 
   CIRGenFunctionInfo() : required(RequiredArgs::All) {}
 

``````````

</details>


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


More information about the cfe-commits mailing list