We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25cf89 commit f5c0f93Copy full SHA for f5c0f93
libclc/utils/libclc-remangler/LibclcRemangler.cpp
@@ -978,12 +978,13 @@ class LibCLCRemangler : public ASTConsumer {
978
// Drop unuseful clone of the original or remangled function.
979
Func->replaceAllUsesWith(ConstantPointerNull::get(Func->getType()));
980
ToErase.push_back(Func);
981
+ F.takeName(Func);
982
} else {
983
// Name doesn't exist in the original module. Drop unuseful clone of
984
// remangled function.
985
F.eraseFromParent();
- continue;
986
}
987
+ continue;
988
989
// Complete the mangling process, e.g. from _Z1fPU3AS4i to _Z1fPi.
990
F.setName(Name);
0 commit comments