Skip to content

Commit

Permalink
Early debug message (#1833)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Apr 3, 2024
1 parent 10bf684 commit 5468fa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enzyme/Enzyme/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4530,6 +4530,9 @@ Function *EnzymeLogic::CreateForwardDiff(
if (retType != DIFFE_TYPE::CONSTANT)
assert(!todiff->getReturnType()->isVoidTy());

if (returnUsed)
assert(!todiff->getReturnType()->isVoidTy());

if (mode != DerivativeMode::ForwardMode &&
mode != DerivativeMode::ForwardModeError)
assert(_overwritten_args.size() == todiff->arg_size());
Expand Down

0 comments on commit 5468fa8

Please sign in to comment.