Use attribute helper function

llvm-svn: 188916
This commit is contained in:
Matt Arsenault 2013-08-21 18:54:50 +00:00
parent 3c71dabd88
commit 745832dcc9
1 changed files with 1 additions and 2 deletions

View File

@ -1592,8 +1592,7 @@ struct SLPVectorizer : public FunctionPass {
return false;
// Don't vectorize when the attribute NoImplicitFloat is used.
if (F.getAttributes().hasAttribute(AttributeSet::FunctionIndex,
Attribute::NoImplicitFloat))
if (F.hasFnAttribute(Attribute::NoImplicitFloat))
return false;
DEBUG(dbgs() << "SLP: Analyzing blocks in " << F.getName() << ".\n");