From: Vikram S. Adve Date: Tue, 25 May 2004 08:14:52 +0000 (+0000) Subject: Recognize memalign and friends, and handle them specially. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e4e97ef64d160793dc6a90e4e1aed17d8852b382;p=oota-llvm.git 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 --- 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;