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 cfc035a commit 34f3466Copy full SHA for 34f3466
llvm/lib/Transforms/Utils/LowerGlobalDtors.cpp
@@ -146,7 +146,7 @@ static bool runImpl(Module &M) {
146
// the program never exits) we can simply return early and clear out
147
// @llvm.global_dtors.
148
if (auto F = dyn_cast<Function>(AtExit.getCallee())) {
149
- if (F && F->hasExactDefinition() && F->getArg(0)->getNumUses() == 0) {
+ if (F && F->hasExactDefinition() && F->getArg(0)->use_empty()) {
150
GV->eraseFromParent();
151
return true;
152
}
0 commit comments