[PATCH] D123053: MemoryBuiltins: only claim an allocator family on builtin functions
Augie Fackler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 07:41:33 PDT 2022
durin42 edited the summary of this revision.
durin42 updated this revision to Diff 420850.
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.420850.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/8aedbd8c/attachment.bin>
More information about the llvm-commits
mailing list