Add code that might correctly handle llva_save_stackp().
llvm-svn: 33439
diff --git a/poolalloc/lib/DSA/Local.cpp b/poolalloc/lib/DSA/Local.cpp
index 63feb7b..e6fb542 100644
--- a/poolalloc/lib/DSA/Local.cpp
+++ b/poolalloc/lib/DSA/Local.cpp
@@ -1232,6 +1232,18 @@
if (DSNode *N = RetNH.getNode())
N->setModifiedMarker()->setReadMarker();
return true;
+#if 0
+ } else if (F->getName() == "llva_save_stackp") {
+ // Create a new DSNode for the memory returned by llva_save_stackp()
+ DSNode *N = createNode();
+ N->setAllocaNodeMarker();
+
+ //
+ // TODO:
+ // For now, don't worry about creating a meta-pool. Stack locations
+ // are ignored by our analysis.
+ //
+#endif
} else if (F->getName() == "__generic_copy_from_user") {
if (CS.getCaller()->getName() == "kmem_cache_alloc")
return false;