OSDN Git Service

When PruneEH turned an invoke into an ordinary
authorDuncan Sands <baldrick@free.fr>
Sat, 6 Sep 2008 17:19:29 +0000 (17:19 +0000)
committerDuncan Sands <baldrick@free.fr>
Sat, 6 Sep 2008 17:19:29 +0000 (17:19 +0000)
commit7e8958a9f3366d225ddff95a069efb61f9f3567a
tree3168dc0eb88a1e642f32e7dc1dc026434b7b7072
parent64284aad97fce41a1299c01b0b2a544b8dd425cd
When PruneEH turned an invoke into an ordinary
call (thus changing the call site) it didn't
inform the callgraph about this.  But the
call site does matter - as shown by the testcase,
the callgraph become invalid after the inliner
ran (with an edge between two functions simply
missing), resulting in wrong deductions by
GlobalsModRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55872 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CallGraph.h
lib/Analysis/IPA/CallGraph.cpp
lib/Transforms/IPO/PruneEH.cpp
test/Transforms/PruneEH/2008-09-05-CGUpdate.ll [new file with mode: 0644]