Skip to content

Commit c2d45d1

Browse files
jurahultomtor
authored andcommitted
[Clang][NFC] Adopt simpified getTrailingObjects in CIRGenFunctionInfo (llvm#143253)
1 parent 66820c7 commit c2d45d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ class CIRGenFunctionInfo final
7676

7777
unsigned numArgs;
7878

79-
CanQualType *getArgTypes() { return getTrailingObjects<CanQualType>(); }
80-
const CanQualType *getArgTypes() const {
81-
return getTrailingObjects<CanQualType>();
82-
}
79+
CanQualType *getArgTypes() { return getTrailingObjects(); }
80+
const CanQualType *getArgTypes() const { return getTrailingObjects(); }
8381

8482
CIRGenFunctionInfo() : required(RequiredArgs::All) {}
8583

0 commit comments

Comments
 (0)