From 4ec54eeed6209aa9e60e9954453e4c836d1b6f74 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 15 Oct 2012 06:34:18 +0000 Subject: [PATCH] Supply a default 'operator=' method. llvm-svn: 165922 --- llvm/include/llvm/Attributes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h index 2fc7bd1..afb2e56 100644 --- a/llvm/include/llvm/Attributes.h +++ b/llvm/include/llvm/Attributes.h @@ -95,6 +95,10 @@ public: Attributes() : Attrs(0) {} explicit Attributes(LLVMContext &C, ArrayRef Vals); Attributes(const Attributes &A); + Attributes &operator=(const Attributes &A) { + Attrs = A.Attrs; + return *this; + } class Builder { friend class Attributes; -- 2.7.4