Skip to content

Commit 987e7e4

Browse files
committed
Clear old function name to unblock setName() in tmp-suffix cleanup
1 parent c25cf89 commit 987e7e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/utils/libclc-remangler/LibclcRemangler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ 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+
Func->setName("");
981982
} else {
982983
// Name doesn't exist in the original module. Drop unuseful clone of
983984
// remangled function.

0 commit comments

Comments
 (0)