diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-07 13:15:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-07 13:15:54 +0000 |
commit | 887264b15650af1832f5ef1a56e8c7502edaa85e (patch) | |
tree | 5eb2603f83c806dcd2c3430d00b0c2526e3e3de3 /lib/CodeGen/CGCall.cpp | |
parent | edaf522d3afbfe7458b8234ca25662aec06de149 (diff) |
CodeGen: Move DebugLocs.
It's slightly cheaper than copying it, if the DebugLoc points to replaceable
metadata every copy is recorded in a DenseMap, moving reduces the peak size of
that map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index b0b30a6133..3c296ae468 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -2342,7 +2342,7 @@ void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI, } if (!RetDbgLoc.isUnknown()) - Ret->setDebugLoc(RetDbgLoc); + Ret->setDebugLoc(std::move(RetDbgLoc)); } static bool isInAllocaArgument(CGCXXABI &ABI, QualType type) { |