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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user