summaryrefslogtreecommitdiff
path: root/include/llvm/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-15 06:34:18 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-15 06:34:18 +0000
commit2c6893b56817ceb51a523a5d1342fc2317efe251 (patch)
tree34b45e9648c55cb368695436728dde03b295cd4c /include/llvm/Attributes.h
parent05cc40d20c0f3b2f1bd5cb86ceb9f32d07cae110 (diff)
downloadllvm-2c6893b56817ceb51a523a5d1342fc2317efe251.tar.gz
llvm-2c6893b56817ceb51a523a5d1342fc2317efe251.tar.bz2
llvm-2c6893b56817ceb51a523a5d1342fc2317efe251.tar.xz
Supply a default 'operator=' method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r--include/llvm/Attributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index 2fc7bd1c55..afb2e564f0 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -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;