Skip to content

Commit 96ab8d8

Browse files
committed
[AliasAnalysis] Rename getMemoryBehavior.
getMemoryBehavior is also used by SILInstruction. This commit renames getMemoryBehavior to computeMemoryBehavior and cleans some of the code that touches it.
1 parent 2276a93 commit 96ab8d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILAnalysis/MemoryBehavior.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ MemBehavior MemoryBehaviorVisitor::visitReleaseValueInst(ReleaseValueInst *SI) {
305305
// Top Level Entrypoint
306306
//===----------------------------------------------------------------------===//
307307

308-
SILInstruction::MemoryBehavior
309-
AliasAnalysis::getMemoryBehavior(SILInstruction *Inst, SILValue V,
308+
MemBehavior
309+
AliasAnalysis::computeMemoryBehavior(SILInstruction *Inst, SILValue V,
310310
RetainObserveKind IgnoreRefCountIncrements) {
311311
DEBUG(llvm::dbgs() << "GET MEMORY BEHAVIOR FOR:\n " << *Inst << " "
312312
<< *V.getDef());

0 commit comments

Comments
 (0)