Remove more uses of the attribute enums by supplying appropriate query methods for them.

No functionality change intended.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2012-10-09 00:28:54 +00:00
parent 8831c0605b
commit 060f20a0fa
4 changed files with 158 additions and 19 deletions

View File

@@ -132,7 +132,7 @@ static const AllocFnsTy *getAllocationData(const Value *V, AllocType AllocTy,
static bool hasNoAliasAttr(const Value *V, bool LookThroughBitCast) {
ImmutableCallSite CS(LookThroughBitCast ? V->stripPointerCasts() : V);
return CS && CS.hasFnAttr(Attribute::NoAlias);
return CS && CS.fnHasNoAliasAttr();
}