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 66f55c8e78
commit 6026f572eb

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;