forked from OSchip/llvm-project
Recognize memalign and friends, and handle them specially.
llvm-svn: 13741
This commit is contained in:
parent
e1e10e1883
commit
f6c4ee0744
|
@ -523,7 +523,8 @@ void GraphBuilder::visitCallSite(CallSite CS) {
|
||||||
N->setModifiedMarker();
|
N->setModifiedMarker();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
if (F->getName() == "calloc") {
|
if (F->getName() == "calloc" || F->getName() == "posix_memalign" ||
|
||||||
|
F->getName() == "memalign" || F->getName() == "valloc") {
|
||||||
setDestTo(*CS.getInstruction(),
|
setDestTo(*CS.getInstruction(),
|
||||||
createNode()->setHeapNodeMarker()->setModifiedMarker());
|
createNode()->setHeapNodeMarker()->setModifiedMarker());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue