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();
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue