Skip to content

Commit 89fa9ff

Browse files
committed
OpenMPOpt: Avoid using getNumUses
1 parent 34f3466 commit 89fa9ff

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)