Skip to content

Commit f2c175f

Browse files
authored
OpenMPOpt: Avoid using getNumUses (#136349)
1 parent 34e7809 commit f2c175f

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)