mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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:
parent
5d0061e025
commit
1f9855a814
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user