Skip to content

Commit f5c0f93

Browse files
committed
fix name not taken
1 parent c25cf89 commit f5c0f93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libclc/utils/libclc-remangler/LibclcRemangler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,12 +978,13 @@ class LibCLCRemangler : public ASTConsumer {
978978
// Drop unuseful clone of the original or remangled function.
979979
Func->replaceAllUsesWith(ConstantPointerNull::get(Func->getType()));
980980
ToErase.push_back(Func);
981+
F.takeName(Func);
981982
} else {
982983
// Name doesn't exist in the original module. Drop unuseful clone of
983984
// remangled function.
984985
F.eraseFromParent();
985-
continue;
986986
}
987+
continue;
987988
}
988989
// Complete the mangling process, e.g. from _Z1fPU3AS4i to _Z1fPi.
989990
F.setName(Name);

0 commit comments

Comments
 (0)