From e4e97ef64d160793dc6a90e4e1aed17d8852b382 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 25 May 2004 08:14:52 +0000 Subject: [PATCH] Recognize memalign and friends, and handle them specially. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13741 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Local.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index 995c115af9f..31ce79dd408 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -523,7 +523,8 @@ void GraphBuilder::visitCallSite(CallSite CS) { N->setModifiedMarker(); return; default: - if (F->getName() == "calloc") { + if (F->getName() == "calloc" || F->getName() == "posix_memalign" || + F->getName() == "memalign" || F->getName() == "valloc") { setDestTo(*CS.getInstruction(), createNode()->setHeapNodeMarker()->setModifiedMarker()); return; -- 2.34.1