projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5952766
)
Supply a default 'operator=' method.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 15 Oct 2012 06:34:18 +0000
(06:34 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 15 Oct 2012 06:34:18 +0000
(06:34 +0000)
llvm-svn: 165922
llvm/include/llvm/Attributes.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Attributes.h
b/llvm/include/llvm/Attributes.h
index
2fc7bd1
..
afb2e56
100644
(file)
--- 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<AttrVal> Vals);
Attributes(const Attributes &A);
+ Attributes &operator=(const Attributes &A) {
+ Attrs = A.Attrs;
+ return *this;
+ }
class Builder {
friend class Attributes;