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)
commitfec2c2bf5ea14679f8a2d74a72bdec76f05fa001
tree3168dc0eb88a1e642f32e7dc1dc026434b7b7072
parent3b217c6f5c21a5f16670b14e3beeaff5ee74df1c
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]