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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165922 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Attributes.h

index 2fc7bd1c5529c9d416be1d3a9fcd849a0d9fd3b6..afb2e564f0ea721485c62cc1b8557896f71899a0 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;