Skip to content

Commit

Permalink
Fix an assertion when building the clad benchmarks with clang18 on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Jun 11, 2024
1 parent 2cae75f commit 6efcd08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Differentiator/VisitorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ namespace clad {
(isa<CXXOperatorCallExpr>(ENoCasts) &&
cast<CXXOperatorCallExpr>(ENoCasts)->getNumArgs() == 2) ||
isa<ConditionalOperator>(ENoCasts) ||
isa<CXXBindTemporaryExpr>(ENoCasts))
return m_Sema.ActOnParenExpr(noLoc, noLoc, E).get();
else
return E;
isa<CXXBindTemporaryExpr>(ENoCasts)) {
return m_Sema.ActOnParenExpr(E->getBeginLoc(), E->getEndLoc(), E).get();
}
return E;
}

Expr* VisitorBase::StoreAndRef(Expr* E, llvm::StringRef prefix,
Expand Down

0 comments on commit 6efcd08

Please sign in to comment.