Skip to content

Commit 126cd4e

Browse files
arsenmIanWood1
authored andcommitted
OpenMPOpt: Avoid using getNumUses (llvm#136349)
1 parent 4a39bb3 commit 126cd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ struct OpenMPOpt {
15351535
// safely remove it.
15361536
// TODO: This should be somewhere more common in the future.
15371537
if (GlobalVariable *GV = M.getNamedGlobal("__llvm_rpc_client")) {
1538-
if (GV->getNumUses() >= 1)
1538+
if (GV->hasNUsesOrMore(1))
15391539
return false;
15401540

15411541
GV->replaceAllUsesWith(PoisonValue::get(GV->getType()));

0 commit comments

Comments
 (0)