Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrygianGates committed Sep 1, 2023
1 parent c8076f2 commit a32538a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Differentiator/ReverseModeForwPassVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ ReverseModeForwPassVisitor::VisitUnaryOperator(const UnaryOperator* UnOp) {
} else if (opCode == UO_PreInc || opCode == UO_PreDec) {
diff = Visit(UnOp->getSubExpr(), dfdx());
} else if (opCode == UnaryOperatorKind::UO_Real ||
opCode == UnaryOperatorKind::UO_Imag) {
opCode == UnaryOperatorKind::UO_Imag) {
diff = VisitWithExplicitNoDfDx(UnOp->getSubExpr());
ResultRef = BuildOp(opCode, diff.getExpr_dx());
/// Create and add `__real r += dfdx()` expression.
Expand All @@ -272,8 +272,7 @@ ReverseModeForwPassVisitor::VisitUnaryOperator(const UnaryOperator* UnOp) {
// Add it to the body statements.
addToCurrentBlock(add_assign, direction::reverse);
}
}
else {
} else {
// FIXME: This is not adding 'address-of' operator support.
// This is just making this special case differentiable that is required
// for computing hessian:
Expand Down

0 comments on commit a32538a

Please sign in to comment.