summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/Local.cpp
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
commitf6c4ee0744e3c5fb2c797e72e4f643a59f38bf35 (patch)
treee60f0eb654d8c0fb12c80e3795cd4a9c78a994bd /llvm/lib/Analysis/DataStructure/Local.cpp
parente1e10e1883ac89d6db1bb94d9c2994cc48fe3adb (diff)
downloadbcm5719-llvm-f6c4ee0744e3c5fb2c797e72e4f643a59f38bf35.tar.gz
bcm5719-llvm-f6c4ee0744e3c5fb2c797e72e4f643a59f38bf35.zip
Recognize memalign and friends, and handle them specially.
llvm-svn: 13741
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index 995c115af9f..31ce79dd408 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud