Use the attribute enums to query if a parameter has an attribute.

llvm-svn: 165550
This commit is contained in:
Bill Wendling
2012-10-09 21:38:14 +00:00
parent 880ee17fb8
commit 8ccd6ca199
10 changed files with 44 additions and 196 deletions

View File

@@ -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))
.paramHasNoAliasAttr(0);
.paramHasAttr(0, Attributes::NoAlias);
return false;
}