[PATCH] D123053: MemoryBuiltins: only claim an allocator family on builtin functions
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 09:39:23 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd6a7da5ae3a2: MemoryBuiltins: only claim an allocator family on builtin functions (authored by durin42).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123053/new/
https://reviews.llvm.org/D123053
Files:
llvm/lib/Analysis/MemoryBuiltins.cpp
Index: llvm/lib/Analysis/MemoryBuiltins.cpp
===================================================================
--- llvm/lib/Analysis/MemoryBuiltins.cpp
+++ llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -492,7 +492,7 @@
const TargetLibraryInfo *TLI) {
bool IsNoBuiltin;
const Function *Callee = getCalledFunction(I, IsNoBuiltin);
- if (Callee == nullptr)
+ if (Callee == nullptr || IsNoBuiltin)
return None;
LibFunc TLIFn;
if (!TLI || !TLI->getLibFunc(*Callee, TLIFn) || !TLI->has(TLIFn))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123053.421249.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220407/f01ae4ba/attachment.bin>
More information about the llvm-commits
mailing list