Skip to content

Commit 2213872

Browse files
authored
llvm-reduce: Use isCallee helper (llvm#133419)
1 parent fe30cf1 commit 2213872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static bool shouldReduceOperand(Use &Op) {
5252
if (isa<GEPOperator>(Op.getUser()))
5353
return false;
5454
if (auto *CB = dyn_cast<CallBase>(Op.getUser())) {
55-
if (&CB->getCalledOperandUse() == &Op)
55+
if (CB->isCallee(&Op))
5656
return false;
5757
}
5858
return true;

0 commit comments

Comments
 (0)