Skip to content

Commit

Permalink
Fix named bcloader (#2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 4, 2024
1 parent b38b240 commit e5a36ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enzyme/BCLoad/BCLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ bool provideDefinitions(Module &M, std::set<std::string> ignoreFunctions,

for (auto &&[realname, F] : name_rewrites) {
auto decl = M.getOrInsertFunction(realname, F->getFunctionType());
auto entry = BasicBlock::Create(F->getContext(), "entry",
cast<Function>(decl.getCallee()));
auto entry = BasicBlock::Create(F->getContext(), "entry", F);
IRBuilder<> B(entry);
SmallVector<Value *, 1> vals;
for (auto &arg : F->args())
Expand Down

0 comments on commit e5a36ad

Please sign in to comment.