diff options
-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> |