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
This commit is contained in:
Vikram S. Adve 2004-05-25 08:14:52 +00:00
parent 3c6a0d4ae2
commit e4e97ef64d

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;