From ec2ad99b939bf4b6e1e2a1852681c5931335bacf Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 7 Aug 2014 01:00:42 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215047 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 87453a25b4..ed31a9f86e 100644 --- a/include/clang/Sema/Sema.h +++ b/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; } -- 2.40.0