summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 21:27:37 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 21:27:37 +0000
commita06ac62a5ecce03d99a816c60c31c082e4fdfc98 (patch)
tree45c31774aef6c3dc70f343f9d5547b454aab6bd3 /llvm/lib
parentc20122732ec0359e6e5146881dbe64a6ad07ef51 (diff)
downloadbcm5719-llvm-a06ac62a5ecce03d99a816c60c31c082e4fdfc98.tar.gz
bcm5719-llvm-a06ac62a5ecce03d99a816c60c31c082e4fdfc98.zip
Cannot modify original call sites vector
llvm-svn: 4634
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DataStructure/Steensgaard.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
index 028bf919e2f..aad8657d1da 100644
--- a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
+++ b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp
@@ -156,7 +156,12 @@ bool Steens::run(Module &M) {
// call nodes...
//
std::vector<DSCallSite> &Calls =
- ResultGraph->getFunctionCalls();
+ ResultGraph->getAuxFunctionCalls();
+ assert(Calls.empty() && "Aux call list is already in use??");
+
+ // Start with a copy of the original call sites...
+ Calls = ResultGraph->getFunctionCalls();
+
for (unsigned i = 0; i != Calls.size(); ) {
DSCallSite &CurCall = Calls[i];
OpenPOWER on IntegriCloud