mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Use method to query for NoAlias attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -503,7 +503,7 @@ bool AliasAnalysis::canInstructionRangeModify(const Instruction &I1,
|
|||||||
bool llvm::isNoAliasCall(const Value *V) {
|
bool llvm::isNoAliasCall(const Value *V) {
|
||||||
if (isa<CallInst>(V) || isa<InvokeInst>(V))
|
if (isa<CallInst>(V) || isa<InvokeInst>(V))
|
||||||
return ImmutableCallSite(cast<Instruction>(V))
|
return ImmutableCallSite(cast<Instruction>(V))
|
||||||
.paramHasAttr(0, Attribute::NoAlias);
|
.paramHasNoAliasAttr(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user