Skip to content

Commit

Permalink
Various fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Sep 26, 2024
1 parent 662740f commit 9f26768
Show file tree
Hide file tree
Showing 19 changed files with 1,228 additions and 240 deletions.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//
//===----------------------------------------------------------------------===//
#include <llvm/Config/llvm-config.h>
#include <llvm/IR/GlobalValue.h>
#include <memory>

#if LLVM_VERSION_MAJOR >= 16
Expand Down Expand Up @@ -2217,7 +2218,7 @@ class EnzymeBase {
#endif
RemapFunction(F, Mapping,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
TruncatedFunc->deleteBody();
TruncatedFunc->eraseFromParent();
}
return true;
}
Expand Down
Loading

0 comments on commit 9f26768

Please sign in to comment.