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 | 3c5e60994f53eef2808a33b5ca6c3dffc2168054 (patch) | |
tree | f77554018088b20adc18a5aca234db259071c838 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 8f3af87e99b9556224480f1aa18d340fb343bbf6 (diff) | |
download | llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.gz llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.bz2 llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2db91ea40b..68b9146adf 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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. |