Trivial updates for upstream LLVM changes.

- BitRig is gone
- llvm::enumerate's element type now uses methods instead of fields

No intended functionality change.
This commit is contained in:
Jordan Rose
2017-07-25 14:11:03 -07:00
parent 1c1597c70e
commit 63a9943a46
2 changed files with 2 additions and 3 deletions

View File

@@ -243,8 +243,8 @@ MemBehavior MemoryBehaviorVisitor::visitApplyInst(ApplyInst *AI) {
// We can ignore mayTrap().
bool any_in_guaranteed_params = false;
for (auto op : enumerate(AI->getArgumentOperands())) {
if (op.Value.get() == V &&
AI->getSubstCalleeConv().getSILArgumentConvention(op.Index) == swift::SILArgumentConvention::Indirect_In_Guaranteed) {
if (op.value().get() == V &&
AI->getSubstCalleeConv().getSILArgumentConvention(op.index()) == swift::SILArgumentConvention::Indirect_In_Guaranteed) {
any_in_guaranteed_params = true;
break;
}