diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:58:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:58:52 +0000 |
commit | e8619aa1c18bece2ed0603bf9ae08a4a68b2855f (patch) | |
tree | eff85365317f3851efd40aaee5c6ae21776eab6b /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | d777398ee4244a5f7877c72794c8abc8696ba81a (diff) | |
download | bcm5719-llvm-e8619aa1c18bece2ed0603bf9ae08a4a68b2855f.tar.gz bcm5719-llvm-e8619aa1c18bece2ed0603bf9ae08a4a68b2855f.zip |
Use method to query for attributes.
llvm-svn: 165209
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 305d70f27b0..a2427cffbd6 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -714,7 +714,7 @@ bool CodeGenPrepare::DupRetToEnableTailCallOpts(ReturnInst *RI) { // See llvm::isInTailCallPosition(). const Function *F = BB->getParent(); Attributes CallerRetAttr = F->getAttributes().getRetAttributes(); - if ((CallerRetAttr & Attribute::ZExt) || (CallerRetAttr & Attribute::SExt)) + if (CallerRetAttr.hasZExtAttr() || CallerRetAttr.hasSExtAttr()) return false; // Make sure there are no instructions between the PHI and return, or that the |