diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-08 21:08:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-08 21:08:28 +0000 |
commit | beacefae61fdba4a9a2c03ccbfdc07ccfa58f878 (patch) | |
tree | 53ed9b642051d97f2c0b4149abc2553bafb5039f | |
parent | 35c4c33879f5171f3c19781e3396a940264ea0b8 (diff) | |
download | external_llvm-beacefae61fdba4a9a2c03ccbfdc07ccfa58f878.zip external_llvm-beacefae61fdba4a9a2c03ccbfdc07ccfa58f878.tar.gz external_llvm-beacefae61fdba4a9a2c03ccbfdc07ccfa58f878.tar.bz2 |
Handle assert_fail special
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DataStructure/Local.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index 18e7df9..cbdbb12 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -888,6 +888,13 @@ void GraphBuilder::visitCallSite(CallSite CS) { 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()); |