Skip to content

Commit

Permalink
Fixed incorrect usage of llvm::Function::splice.
Browse files Browse the repository at this point in the history
  • Loading branch information
matinraayai authored Feb 21, 2024
1 parent 638ac37 commit 6fe2205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2110,8 +2110,7 @@ class EnzymeBase {

// Move the truncated body into the original function
F.deleteBody();
F.getBasicBlockList().splice(F.begin(),
TruncatedFunc->getBasicBlockList());
F.splice(F.begin(), TruncatedFunc);
RemapFunction(F, Mapping,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
TruncatedFunc->deleteBody();
Expand Down

0 comments on commit 6fe2205

Please sign in to comment.