[llvm] cd5f582 - MemoryBuiltins: update comment; NFC

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 13:47:49 PDT 2021


Author: George Burgess IV
Date: 2021-09-21T13:47:26-07:00
New Revision: cd5f582c3dd747ab97b57df37642b0dffba398ee

URL: https://github.com/llvm/llvm-project/commit/cd5f582c3dd747ab97b57df37642b0dffba398ee
DIFF: https://github.com/llvm/llvm-project/commit/cd5f582c3dd747ab97b57df37642b0dffba398ee.diff

LOG: MemoryBuiltins: update comment; NFC

This comment references behavior that was removed in
ccae43a247b0791f78ea89b9cb7e59fa70f5000d, 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 :)

Added: 
    

Modified: 
    llvm/lib/Analysis/MemoryBuiltins.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index b175bec935bf..4f2b5b34304d 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -135,9 +135,8 @@ static const Function *getCalledFunction(const Value *V, bool LookThroughBitCast
   return nullptr;
 }
 
-/// Returns the allocation data for the given value if it's either a call to a
-/// known allocation function, or a call to a function with the allocsize
-/// attribute.
+/// Returns the allocation data for the given value if it's a call to a known
+/// allocation function.
 static Optional<AllocFnsTy>
 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy,
                              const TargetLibraryInfo *TLI) {


        


More information about the llvm-commits mailing list