diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-10-17 18:43:40 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-10-17 18:43:40 +0000 |
| commit | 63a4ea185965b3278fb07b7b865910eb18ee83ad (patch) | |
| tree | d4469cba160af830b117b8b8075ed7197f613e03 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 975bfc9b45ef7384a4d744fb5f7fdf61325001bf (diff) | |
| download | bcm5719-llvm-63a4ea185965b3278fb07b7b865910eb18ee83ad.tar.gz bcm5719-llvm-63a4ea185965b3278fb07b7b865910eb18ee83ad.zip | |
Correct over-zealous removal of hack.
Some code want to check that *any* call within a function has the 'returns
twice' attribute, not just that the current function has one.
llvm-svn: 142221
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2db91ea40b6..68b9146adfe 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -374,7 +374,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { } // Determine if there is a call to setjmp in the machine function. - MF->setCallsSetJmp(Fn.hasFnAttr(Attribute::ReturnsTwice)); + MF->setCallsSetJmp(Fn.callsFunctionThatReturnsTwice()); // Replace forward-declared registers with the registers containing // the desired value. |

