aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h')
-rw-r--r--contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h b/contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h
index 60fc8d18678c..47bb02ac8e8b 100644
--- a/contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h
+++ b/contrib/llvm-project/llvm/lib/Analysis/CFLGraph.h
@@ -434,7 +434,8 @@ template <typename CFLAA> class CFLGraphBuilder {
// introduce any aliases.
// TODO: address other common library functions such as realloc(),
// strdup(), etc.
- if (isMallocOrCallocLikeFn(&Call, &TLI) || isFreeCall(&Call, &TLI))
+ if (isMallocOrCallocLikeFn(&Call, &TLI) ||
+ getFreedOperand(&Call, &TLI) != nullptr)
return;
// TODO: Add support for noalias args/all the other fun function