mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
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:
parent
3c6a0d4ae2
commit
e4e97ef64d
@ -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