-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Clang][NFC] Adopt simpified getTrailingObjects
in CIRGenFunctionInfo
#143253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clang][NFC] Adopt simpified getTrailingObjects
in CIRGenFunctionInfo
#143253
Conversation
getTrailingObjects
in CIRGenFunct…getTrailingObjects
in CIRGenFunctionInfo
@llvm/pr-subscribers-clang Author: Rahul Joshi (jurahul) ChangesFull diff: https://github.com/llvm/llvm-project/pull/143253.diff 1 Files Affected:
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) {}
|
@llvm/pr-subscribers-clangir Author: Rahul Joshi (jurahul) ChangesFull diff: https://github.com/llvm/llvm-project/pull/143253.diff 1 Files Affected:
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) {}
|
getTrailingObjects
in CIRGenFunctionInfogetTrailingObjects
in CIRGenFunctionInfo
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/19065 Here is the relevant piece of the build log for the reference
|
No description provided.