From 79b319d35589ffe9c00a5e112a79ad20ea78c4d5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 16 Oct 2012 18:20:09 +0000 Subject: [PATCH] And now we can call the other 'get' method from this one and not duplicate the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166037 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Attributes.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 4222a62251b..1e995f9a858 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -290,10 +290,7 @@ struct AttributeWithIndex { static AttributeWithIndex get(LLVMContext &C, unsigned Idx, ArrayRef Attrs) { - AttributeWithIndex P; - P.Index = Idx; - P.Attrs = Attributes::get(C, Attrs); - return P; + return get(Idx, Attributes::get(C, Attrs)); } static AttributeWithIndex get(unsigned Idx, Attributes Attrs) { AttributeWithIndex P; @@ -318,8 +315,8 @@ public: FunctionIndex = ~0U }; private: - /// AttrList - The attributes that we are managing. This can be null - /// to represent the empty attributes list. + /// AttrList - The attributes that we are managing. This can be null to + /// represent the empty attributes list. AttributeListImpl *AttrList; public: AttrListPtr() : AttrList(0) {} -- 2.34.1