Commit AttributeList change that was supposed to be part of r303654
authorReid Kleckner <rnk@google.com>
Tue, 23 May 2017 17:03:28 +0000 (17:03 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 23 May 2017 17:03:28 +0000 (17:03 +0000)
llvm-svn: 303656

llvm/lib/IR/Instructions.cpp

index 00ac203..d7baa9e 100644 (file)
@@ -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