aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2004-05-25 08:14:52 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2004-05-25 08:14:52 +0000
commite4e97ef64d160793dc6a90e4e1aed17d8852b382 (patch)
treec77ba9498421585c194c17c72360e7b6a559c1c3 /lib
parent3c6a0d4ae2a5ffb19f2b6527c51c95ea0475ce9f (diff)
downloadexternal_llvm-e4e97ef64d160793dc6a90e4e1aed17d8852b382.zip
external_llvm-e4e97ef64d160793dc6a90e4e1aed17d8852b382.tar.gz
external_llvm-e4e97ef64d160793dc6a90e4e1aed17d8852b382.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 995c115..31ce79d 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -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;