summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-17 18:22:52 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-17 18:22:52 +0000
commit728662f9e869251ff9b5a847b0cb0daa99d1d250 (patch)
tree585f6c4f263ad1cfd11ab701476fc8e77764b8c6 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentf1fddcd9e01ceb38ee7f2951f9e109cccb601654 (diff)
downloadllvm-728662f9e869251ff9b5a847b0cb0daa99d1d250.tar.gz
llvm-728662f9e869251ff9b5a847b0cb0daa99d1d250.tar.bz2
llvm-728662f9e869251ff9b5a847b0cb0daa99d1d250.tar.xz
Now that we have the ReturnsTwice function attribute, this method is
obsolete. Check the attribute instead. <rdar://problem/8031714> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 68b9146adf..2db91ea40b 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.callsFunctionThatReturnsTwice());
+ MF->setCallsSetJmp(Fn.hasFnAttr(Attribute::ReturnsTwice));
// Replace forward-declared registers with the registers containing
// the desired value.