Skip to content

Commit cd5f582

Browse files
committed
MemoryBuiltins: update comment; NFC
This comment references behavior that was removed in ccae43a, which is a commit from 5 years ago. It seems safe to assume that that behavior won't be coming back soon. If it does, we can readd this part of the comment :)
1 parent ac90dfc commit cd5f582

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Analysis/MemoryBuiltins.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ static const Function *getCalledFunction(const Value *V, bool LookThroughBitCast
135135
return nullptr;
136136
}
137137

138-
/// Returns the allocation data for the given value if it's either a call to a
139-
/// known allocation function, or a call to a function with the allocsize
140-
/// attribute.
138+
/// Returns the allocation data for the given value if it's a call to a known
139+
/// allocation function.
141140
static Optional<AllocFnsTy>
142141
getAllocationDataForFunction(const Function *Callee, AllocType AllocTy,
143142
const TargetLibraryInfo *TLI) {

0 commit comments

Comments
 (0)