summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-02-07 13:15:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-02-07 13:15:54 +0000
commit0327866a53ed11e4d73999f4dd7a32f500a6e40c (patch)
tree24b583021f21ce6826a2457502e495be6681e651 /clang/lib/CodeGen/CGCall.cpp
parenta9591b5880261dd0d379ab09672991d8db12c66c (diff)
downloadbcm5719-llvm-0327866a53ed11e4d73999f4dd7a32f500a6e40c.tar.gz
bcm5719-llvm-0327866a53ed11e4d73999f4dd7a32f500a6e40c.zip
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. llvm-svn: 228492
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index b0b30a6133a..3c296ae4681 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud