diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-08-07 01:00:42 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-08-07 01:00:42 +0000 |
commit | f650c0afd4db97ec9a3f07c1b6a652caede8a6f5 (patch) | |
tree | acae18cd15a8078e290ea60614608e4e9e7e5fe2 /clang | |
parent | 3be1cb294f328f03afcb9c9e039b078a8643d0d9 (diff) | |
download | bcm5719-llvm-f650c0afd4db97ec9a3f07c1b6a652caede8a6f5.tar.gz bcm5719-llvm-f650c0afd4db97ec9a3f07c1b6a652caede8a6f5.zip |
Make FullExprArg trivially copyable by removing the copy ctor
The default copy ctor is good. This avoids using inalloca for a bunch
of Sema methods when self-hosting.
llvm-svn: 215047
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Sema/Sema.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 87453a25b4f..ed31a9f86e2 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -2946,11 +2946,6 @@ public: public: FullExprArg(Sema &actions) : E(nullptr) { } - // FIXME: The const_cast here is ugly. RValue references would make this - // much nicer (or we could duplicate a bunch of the move semantics - // emulation code from Ownership.h). - FullExprArg(const FullExprArg& Other) : E(Other.E) {} - ExprResult release() { return E; } |