mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
Handle assert_fail special
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35c4c33879
commit
beacefae61
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user