Skip to content

Commit

Permalink
Update lib/Differentiator/ReverseModeForwPassVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
PhrygianGates and github-actions[bot] authored Aug 16, 2023
1 parent 4dfac85 commit af2fbba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Differentiator/ReverseModeForwPassVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ clang::QualType ReverseModeForwPassVisitor::ComputeReturnType() {

llvm::SmallVector<clang::ParmVarDecl*, 8>
ReverseModeForwPassVisitor::BuildParams(DiffParams& diffParams) {
llvm::SmallVector<clang::ParmVarDecl*, 8> params, paramDerivatives;
llvm::SmallVector<clang::ParmVarDecl*, 8> params;
llvm::SmallVector<clang::ParmVarDecl*, 8> paramDerivatives;
params.reserve(m_Function->getNumParams() + diffParams.size());
auto derivativeFnType = cast<FunctionProtoType>(m_Derivative->getType());

Expand Down

0 comments on commit af2fbba

Please sign in to comment.