diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-19 23:54:18 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-19 23:54:18 +0000 |
commit | e603fe46649aee6f6aeca1668f0b617818af1e1d (patch) | |
tree | 179fb8d6b426bf5f249d798f61e1085c1697a7af /lib/CodeGen | |
parent | f5958e9dea9daf6843f44686bc9d8b19155465e4 (diff) | |
download | external_llvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.zip external_llvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.tar.gz external_llvm-e603fe46649aee6f6aeca1668f0b617818af1e1d.tar.bz2 |
Convert some attribute existence queries over to use the predicate methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/Analysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/Analysis.cpp b/lib/CodeGen/Analysis.cpp index 447f398..1f3f5a5 100644 --- a/lib/CodeGen/Analysis.cpp +++ b/lib/CodeGen/Analysis.cpp @@ -318,7 +318,7 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, Attributes CalleeRetAttr, return false; // It's not safe to eliminate the sign / zero extension of the return value. - if ((CallerRetAttr & Attribute::ZExt) || (CallerRetAttr & Attribute::SExt)) + if (CallerRetAttr.hasZExtAttr() || CallerRetAttr.hasSExtAttr()) return false; // Otherwise, make sure the unmodified return value of I is the return value. @@ -358,7 +358,7 @@ bool llvm::isInTailCallPosition(SelectionDAG &DAG, SDNode *Node, return false; // It's not safe to eliminate the sign / zero extension of the return value. - if ((CallerRetAttr & Attribute::ZExt) || (CallerRetAttr & Attribute::SExt)) + if (CallerRetAttr.hasZExtAttr() || CallerRetAttr.hasSExtAttr()) return false; // Check if the only use is a function return node. |