From 1010908cf7d3fda7b69a5320776f4c2d41e5f636 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 23 May 2017 17:03:28 +0000 Subject: [PATCH] Commit AttributeList change that was supposed to be part of r303654 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303656 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp index 00ac2037f1f6..d7baa9ebc223 100644 --- a/lib/IR/Instructions.cpp +++ b/lib/IR/Instructions.cpp @@ -454,7 +454,7 @@ bool CallInst::dataOperandHasImpliedAttr(unsigned i, // question is a call argument; or be indirectly implied by the kind of its // containing operand bundle, if the operand is a bundle operand. - if (i == Attribute::ReturnIndex) + if (i == AttributeList::ReturnIndex) return hasRetAttr(Kind); // FIXME: Avoid these i - 1 calculations and update the API to use zero-based @@ -782,7 +782,7 @@ bool InvokeInst::dataOperandHasImpliedAttr(unsigned i, // question is an invoke argument; or be indirectly implied by the kind of its // containing operand bundle, if the operand is a bundle operand. - if (i == Attribute::ReturnIndex) + if (i == AttributeList::ReturnIndex) return hasRetAttr(Kind); // FIXME: Avoid these i - 1 calculations and update the API to use zero-based