Skip to content

Commit e5a36ad

Browse files
authored
Fix named bcloader (#2150)
1 parent b38b240 commit e5a36ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

enzyme/BCLoad/BCLoader.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ bool provideDefinitions(Module &M, std::set<std::string> ignoreFunctions,
7575

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

0 commit comments

Comments
 (0)