diff options
author | James Y Knight <jyknight@google.com> | 2019-02-02 01:48:23 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-02-02 01:48:23 +0000 |
commit | 916db651c873fa68cdb0aa3664fc301ba09d8d6c (patch) | |
tree | 4bcc80b457e6e17f3e1014a3559af1b04c1debe9 /clang/lib/CodeGen/CGVTables.cpp | |
parent | 2be4eabb6fa34705fae074e2c58cf83f247a04f8 (diff) | |
download | llvm-916db651c873fa68cdb0aa3664fc301ba09d8d6c.zip llvm-916db651c873fa68cdb0aa3664fc301ba09d8d6c.tar.gz llvm-916db651c873fa68cdb0aa3664fc301ba09d8d6c.tar.bz2 |
Remove redundant FunctionDecl argument from a couple functions.
This argument was added in r254554 in order to support the
pass_object_size attribute. However, in r296076, the attribute's
presence is now also represented in FunctionProtoType's
ExtParameterInfo, and thus it's unnecessary to pass along a separate
FunctionDecl.
The functions modified are:
RequiredArgs::forPrototype{,Plus}, and
CodeGenTypes::ConvertFunctionType.
After this, it's also (again) unnecessary to have a separate
ConvertFunctionType function ConvertType, so convert callers back to
the latter, leaving the former as an internal helper function.
llvm-svn: 352946
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index f944504..702e18d 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -326,7 +326,7 @@ void CodeGenFunction::EmitCallAndReturnForThunk(llvm::Constant *CalleePtr, #ifndef NDEBUG const CGFunctionInfo &CallFnInfo = CGM.getTypes().arrangeCXXMethodCall( - CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1, MD), PrefixArgs); + CallArgs, FPT, RequiredArgs::forPrototypePlus(FPT, 1), PrefixArgs); assert(CallFnInfo.getRegParm() == CurFnInfo->getRegParm() && CallFnInfo.isNoReturn() == CurFnInfo->isNoReturn() && CallFnInfo.getCallingConvention() == CurFnInfo->getCallingConvention()); |