forked from OSchip/llvm-project
f5e2fc474d
If the type isn't trivially moveable emplace can skip a potentially expensive move. It also saves a couple of characters. Call sites were found with the ASTMatcher + some semi-automated cleanup. memberCallExpr( argumentCountIs(1), callee(methodDecl(hasName("push_back"))), on(hasType(recordDecl(has(namedDecl(hasName("emplace_back")))))), hasArgument(0, bindTemporaryExpr( hasType(recordDecl(hasNonTrivialDestructor())), has(constructExpr()))), unless(isInTemplateInstantiation())) No functional change intended. llvm-svn: 238602 |
||
---|---|---|
.. | ||
ChildTarget | ||
Unix | ||
Windows | ||
CMakeLists.txt | ||
LLVMBuild.txt | ||
Makefile | ||
OrcLazyJIT.cpp | ||
OrcLazyJIT.h | ||
RPCChannel.h | ||
RemoteMemoryManager.cpp | ||
RemoteMemoryManager.h | ||
RemoteTarget.cpp | ||
RemoteTarget.h | ||
RemoteTargetExternal.cpp | ||
RemoteTargetExternal.h | ||
RemoteTargetMessage.h | ||
lli.cpp |