diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-16 17:08:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-16 17:08:35 +0000 |
commit | e7746c9084bbd04a37a38571bfc289b40b71cc63 (patch) | |
tree | 2ea9c5564520908bfee074febef41f58e38e255a | |
parent | 0582887de45f0196507ef356dcd5cb11bf7626ba (diff) |
Fix a bug I introduced yesterday, which broke functions with *no* arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28326 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 3c4dd2b60e..1971adae73 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -542,6 +542,9 @@ void X86TargetLowering::LowerCCCArguments(SDOperand Op, SelectionDAG &DAG) { } FormalArgs.push_back(ArgValue); } + // Provide a chain. Note that this isn't the right one, but it works as well + // as before. + FormalArgs.push_back(DAG.getEntryNode()); } std::pair<SDOperand, SDOperand> @@ -1081,6 +1084,10 @@ X86TargetLowering::LowerFastCCArguments(SDOperand Op, SelectionDAG &DAG) { } FormalArgs.push_back(ArgValue); } + + // Provide a chain. Note that this isn't the right one, but it works as well + // as before. + FormalArgs.push_back(DAG.getEntryNode()); } std::pair<SDOperand, SDOperand> |