Cannot modify original call sites vector
authorChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 21:27:37 +0000 (21:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 21:27:37 +0000 (21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4634 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Steensgaard.cpp

index 028bf919e2f0b535cc3a72d29a2e4d83b9fe82d0..aad8657d1daf50a4f7fa415c05f6d800184b5239 100644 (file)
@@ -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];