[clang] [NFC][Clang][CIR] Adopt simpified `getTrailingObjects` in CIRGenFunct… (PR #143253)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 7 05:01:09 PDT 2025
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/143253
…ionInfo
>From 302e09ec58534feb3f7aac0ce0d6edbfb69412dd Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Sat, 7 Jun 2025 04:57:31 -0700
Subject: [PATCH] [NFC][Clang][CIR] Adopt simpified `getTrailingObjects` in
CIRGenFunctionInfo
---
clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
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) {}
More information about the cfe-commits
mailing list