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 4a39bb3 commit 126cd4eCopy full SHA for 126cd4e
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -1535,7 +1535,7 @@ struct OpenMPOpt {
1535
// safely remove it.
1536
// TODO: This should be somewhere more common in the future.
1537
if (GlobalVariable *GV = M.getNamedGlobal("__llvm_rpc_client")) {
1538
- if (GV->getNumUses() >= 1)
+ if (GV->hasNUsesOrMore(1))
1539
return false;
1540
1541
GV->replaceAllUsesWith(PoisonValue::get(GV->getType()));
0 commit comments