Use method to query for NoAlias attribute.

llvm-svn: 165211
This commit is contained in:
Bill Wendling 2012-10-04 07:17:46 +00:00
parent f8bfab0dde
commit 21df9a686c

@ -503,7 +503,7 @@ bool AliasAnalysis::canInstructionRangeModify(const Instruction &I1,
bool llvm::isNoAliasCall(const Value *V) {
if (isa<CallInst>(V) || isa<InvokeInst>(V))
return ImmutableCallSite(cast<Instruction>(V))
.paramHasAttr(0, Attribute::NoAlias);
.paramHasNoAliasAttr(0);
return false;
}