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

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 9 06:25:11 PDT 2025


Author: Rahul Joshi
Date: 2025-06-09T06:25:08-07:00
New Revision: e4060d3beab3b525b49baaa15484e3c595740a2f

URL: https://github.com/llvm/llvm-project/commit/e4060d3beab3b525b49baaa15484e3c595740a2f
DIFF: https://github.com/llvm/llvm-project/commit/e4060d3beab3b525b49baaa15484e3c595740a2f.diff

LOG: [Clang][NFC] Adopt simpified `getTrailingObjects` in CIRGenFunctionInfo (#143253)

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h

Removed: 
    


################################################################################
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