Use the attribute enums to query if a parameter has an attribute.
llvm-svn: 165550
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user