Supply a default 'operator=' method.
authorBill Wendling <isanbard@gmail.com>
Mon, 15 Oct 2012 06:34:18 +0000 (06:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 15 Oct 2012 06:34:18 +0000 (06:34 +0000)
llvm-svn: 165922

llvm/include/llvm/Attributes.h

index 2fc7bd1..afb2e56 100644 (file)
@@ -95,6 +95,10 @@ public:
   Attributes() : Attrs(0) {}
   explicit Attributes(LLVMContext &C, ArrayRef<AttrVal> Vals);
   Attributes(const Attributes &A);
+  Attributes &operator=(const Attributes &A) {
+    Attrs = A.Attrs;
+    return *this;
+  }
 
   class Builder {
     friend class Attributes;