Skip to content

Commit 2f0282a

Browse files
committed
Update comments
1 parent c59a904 commit 2f0282a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/Analysis/AliasAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ LLVM_ABI bool isIdentifiedFunctionLocal(const Value *V);
912912
LLVM_ABI bool isBaseOfObject(const Value *V);
913913

914914
/// Returns true if the pointer is one which would have been considered an
915-
/// escape by isNonEscapingLocalObject.
915+
/// escape by isNotCapturedBefore.
916916
LLVM_ABI bool isEscapeSource(const Value *V);
917917

918918
/// Return true if Object memory is not visible after an unwind, in the sense

llvm/lib/Analysis/AliasAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,13 +857,13 @@ bool llvm::isEscapeSource(const Value *V) {
857857
return !CB->hasArgumentWithAdditionalReturnCaptureComponents();
858858
}
859859

860-
// The load case works because isNonEscapingLocalObject considers all
860+
// The load case works because isNotCapturedBefore considers all
861861
// stores to be escapes (it passes true for the StoreCaptures argument
862862
// to PointerMayBeCaptured).
863863
if (isa<LoadInst>(V))
864864
return true;
865865

866-
// The inttoptr case works because isNonEscapingLocalObject considers all
866+
// The inttoptr case works because isNotCapturedBefore considers all
867867
// means of converting or equating a pointer to an int (ptrtoint, ptr store
868868
// which could be followed by an integer load, ptr<->int compare) as
869869
// escaping, and objects located at well-known addresses via platform-specific

0 commit comments

Comments
 (0)