diff options
author | Manman Ren <mren@apple.com> | 2012-11-01 23:49:58 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-11-01 23:49:58 +0000 |
commit | 0a1544d2fd63d8101dc7d50974e65c95a0f6f98d (patch) | |
tree | 221348531d6d8698343785ba324f2b2ee6695755 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 4ac300dfac53022e690fc9a60deb42976c369a6f (diff) | |
download | external_llvm-0a1544d2fd63d8101dc7d50974e65c95a0f6f98d.zip external_llvm-0a1544d2fd63d8101dc7d50974e65c95a0f6f98d.tar.gz external_llvm-0a1544d2fd63d8101dc7d50974e65c95a0f6f98d.tar.bz2 |
OutputArg: added an index of the original argument to match the change to
InputArg in r165616.
This will enable us to get the actual type for both InputArg and OutputArg.
rdar://9932559
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index d6016d2..3fbf7c2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -1255,7 +1255,7 @@ void SelectionDAGBuilder::visitRet(const ReturnInst &I) { for (unsigned i = 0; i < NumParts; ++i) { Outs.push_back(ISD::OutputArg(Flags, Parts[i].getValueType(), - /*isfixed=*/true)); + /*isfixed=*/true, 0, 0)); OutVals.push_back(Parts[i]); } } @@ -6540,7 +6540,8 @@ TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &CLI) const { for (unsigned j = 0; j != NumParts; ++j) { // if it isn't first piece, alignment must be 1 ISD::OutputArg MyFlags(Flags, Parts[j].getValueType(), - i < CLI.NumFixedArgs); + i < CLI.NumFixedArgs, + i, j*Parts[j].getValueType().getStoreSize()); if (NumParts > 1 && j == 0) MyFlags.Flags.setSplit(); else if (j != 0) |