summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-07-01 22:01:54 +0000
committerJuergen Ributzka <juergen@apple.com>2014-07-01 22:01:54 +0000
commit3bd03c709930114405fca1eaaae1eef8b2be2d58 (patch)
tree737a509cbf7b2af8a29282b93224a0ede1799c74 /llvm/lib/Target/PowerPC
parentdf58625e3c7a7ab7daac7afca76bcb176b471062 (diff)
downloadbcm5719-llvm-3bd03c709930114405fca1eaaae1eef8b2be2d58.tar.gz
bcm5719-llvm-3bd03c709930114405fca1eaaae1eef8b2be2d58.zip
[DAG] Pass the argument list to the CallLoweringInfo via move semantics. NFCI.
The argument list vector is never used after it has been passed to the CallLoweringInfo and moving it to the CallLoweringInfo is cleaner and pretty much as cheap as keeping a pointer to it. llvm-svn: 212135
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 41faab641ef..9833441d76d 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -1936,7 +1936,8 @@ SDValue PPCTargetLowering::LowerINIT_TRAMPOLINE(SDValue Op,
TargetLowering::CallLoweringInfo CLI(DAG);
CLI.setDebugLoc(dl).setChain(Chain)
.setCallee(CallingConv::C, Type::getVoidTy(*DAG.getContext()),
- DAG.getExternalSymbol("__trampoline_setup", PtrVT), &Args, 0);
+ DAG.getExternalSymbol("__trampoline_setup", PtrVT),
+ std::move(Args), 0);
std::pair<SDValue, SDValue> CallResult = LowerCallTo(CLI);
return CallResult.second;
OpenPOWER on IntegriCloud