Skip to content

Commit 9f26768

Browse files
committed
Various fixes and improvements
1 parent 662740f commit 9f26768

File tree

19 files changed

+1228
-240
lines changed

19 files changed

+1228
-240
lines changed

enzyme/Enzyme/Enzyme.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//
2525
//===----------------------------------------------------------------------===//
2626
#include <llvm/Config/llvm-config.h>
27+
#include <llvm/IR/GlobalValue.h>
2728
#include <memory>
2829

2930
#if LLVM_VERSION_MAJOR >= 16
@@ -2217,7 +2218,7 @@ class EnzymeBase {
22172218
#endif
22182219
RemapFunction(F, Mapping,
22192220
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
2220-
TruncatedFunc->deleteBody();
2221+
TruncatedFunc->eraseFromParent();
22212222
}
22222223
return true;
22232224
}

0 commit comments

Comments
 (0)