[OperandBundles] Have GlobalsModRef play nice with operand bundles
A call site's use of a Value might not correspond to an argument operand but to a bundle operand. llvm-svn: 256329
This commit is contained in:
@@ -167,10 +167,9 @@ bool AAEval::runOnFunction(Function &F) {
|
||||
if (!isa<Function>(Callee) && isInterestingPointer(Callee))
|
||||
Pointers.insert(Callee);
|
||||
// Consider formals.
|
||||
for (CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end();
|
||||
AI != AE; ++AI)
|
||||
if (isInterestingPointer(*AI))
|
||||
Pointers.insert(*AI);
|
||||
for (Use &DataOp : CS.data_ops())
|
||||
if (isInterestingPointer(DataOp))
|
||||
Pointers.insert(DataOp);
|
||||
CallSites.insert(CS);
|
||||
} else {
|
||||
// Consider all operands.
|
||||
|
||||
Reference in New Issue
Block a user