add a new CallGraphNode::replaceCallEdge method and use it from
authorChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 05:40:35 +0000 (05:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 05:40:35 +0000 (05:40 +0000)
commita51c39cc3265f5d0d5de87b4a3ef9332c83556e1
tree66ec9d3d0df0527cbad15e8a2b07a7826b6ea039
parentff1147072a0c9dbe91572bbbbf93031c6451bbae
add a new CallGraphNode::replaceCallEdge method and use it from
argpromote to avoid invalidating an iterator.  This fixes PR4977.
All clang tests now pass with expensive checking (on my system
at least).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81843 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CallGraph.h
lib/Analysis/IPA/CallGraph.cpp
lib/Transforms/IPO/ArgumentPromotion.cpp