Recognize memalign and friends, and handle them specially.

llvm-svn: 13741
This commit is contained in:
Vikram S. Adve 2004-05-25 08:14:52 +00:00
parent e1e10e1883
commit f6c4ee0744
1 changed files with 2 additions and 1 deletions

View File

@ -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;