From f6c4ee0744e3c5fb2c797e72e4f643a59f38bf35 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. llvm-svn: 13741 --- llvm/lib/Analysis/DataStructure/Local.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 995c115af9f1..31ce79dd4081 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/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;