Refactoring code around move/copy initialization. NFC.
authorRichard Trieu <rtrieu@google.com>
Thu, 15 Mar 2018 03:00:55 +0000 (03:00 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 15 Mar 2018 03:00:55 +0000 (03:00 +0000)
commit09c163bb6b646e3e8125f19f48a729cf53451d6e
tree40056d3975c3aa43ec4747e30e782893d1381ed1
parentcedfa6da81404050b5d907d0092f326e97820176
Refactoring code around move/copy initialization.  NFC.

Use an enum parameter instead of a bool for more control on how the copy elision
functions work.  Extract the move initialization code from the move or copy
initialization block.

Patch by: Arthur O'Dwyer

Differential Revision: https://reviews.llvm.org/D43898

llvm-svn: 327598
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp