]> granicus.if.org Git - clang/commitdiff
Make FullExprArg trivially copyable by removing the copy ctor
authorReid Kleckner <reid@kleckner.net>
Thu, 7 Aug 2014 01:00:42 +0000 (01:00 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 7 Aug 2014 01:00:42 +0000 (01:00 +0000)
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

index 87453a25b4f805b34f8e130ddceb097fdac517a9..ed31a9f86e2f6422ab480199883bfa9c7068886f 100644 (file)
@@ -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;
     }