[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 21 12:29:03 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.217 -> 1.218
---
Log message:
make this const correct
---
Diffs of the changes: (+2 -2)
DataStructure.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.217 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.218
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.217 Mon Mar 21 04:00:45 2005
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Mon Mar 21 14:28:50 2005
@@ -1087,7 +1087,7 @@
/// mergeCallSite - Merge the nodes reachable from the specified src call
/// site into the nodes reachable from DestCS.
-void ReachabilityCloner::mergeCallSite(const DSCallSite &DestCS,
+void ReachabilityCloner::mergeCallSite(DSCallSite &DestCS,
const DSCallSite &SrcCS) {
merge(DestCS.getRetVal(), SrcCS.getRetVal());
unsigned MinArgs = DestCS.getNumPtrArgs();
@@ -1097,7 +1097,7 @@
merge(DestCS.getPtrArg(a), SrcCS.getPtrArg(a));
for (unsigned a = MinArgs, e = SrcCS.getNumPtrArgs(); a != e; ++a)
- const_cast<DSCallSite&>(DestCS).addPtrArg(getClonedNH(SrcCS.getPtrArg(a)));
+ DestCS.addPtrArg(getClonedNH(SrcCS.getPtrArg(a)));
}
More information about the llvm-commits
mailing list