diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-12-31 00:49:59 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-12-31 00:49:59 +0000 |
| commit | 6e95ae803a0274d69d366ce118b58f46ea3cdf50 (patch) | |
| tree | d3f37e02142656c5fabef64125f348223c4ad09a /llvm/lib/Transforms | |
| parent | ea2b9b9d67bad6fef80056642d26e045a10e3be4 (diff) | |
| download | bcm5719-llvm-6e95ae803a0274d69d366ce118b58f46ea3cdf50.tar.gz bcm5719-llvm-6e95ae803a0274d69d366ce118b58f46ea3cdf50.zip | |
Remove the getAttributesAtIndex and getNumAttrs methods in favor of using the getAttrSomewhere predicate. This prevents the uses of 'Attribute' as a collection of attributes.
llvm-svn: 171271
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 23306b4079b..fcd16b82ccd 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1248,9 +1248,8 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS, // If the call already has the 'nest' attribute somewhere then give up - // otherwise 'nest' would occur twice after splicing in the chain. - for (unsigned I = 0, E = Attrs.getNumAttrs(); I != E; ++I) - if (Attrs.getAttributesAtIndex(I).hasAttribute(Attribute::Nest)) - return 0; + if (Attrs.hasAttrSomewhere(Attribute::Nest)) + return 0; assert(Tramp && "transformCallThroughTrampoline called with incorrect CallSite."); |

