mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
Recognize memalign and friends, and handle them specially.
llvm-svn: 13741
This commit is contained in:
parent
66f55c8e78
commit
6026f572eb
@ -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…
x
Reference in New Issue
Block a user