[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 8 13:09:11 PST 2004



Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.117 -> 1.118
---
Log message:

Handle assert_fail special


---
Diffs of the changes:  (+7 -0)

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.117 llvm/lib/Analysis/DataStructure/Local.cpp:1.118
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.117	Wed Nov  3 12:51:26 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Mon Nov  8 15:08:28 2004
@@ -888,6 +888,13 @@
           if (DSNode *N = H.getNode())
             N->setReadMarker();
           return;
+        } else if (F->getName() == "__assert_fail") {
+          for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end();
+               AI != E; ++AI)
+            if (isPointerType((*AI)->getType()))
+              if (DSNode *N = getValueDest(**AI).getNode())
+                N->setReadMarker();
+          return;
         } else if (F->getName() == "modf" && CS.arg_end()-CS.arg_begin() == 2) {
           // This writes its second argument, and forces it to double.
           DSNodeHandle H = getValueDest(**--CS.arg_end());






More information about the llvm-commits mailing list