diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-21 20:28:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-21 20:28:50 +0000 |
commit | b3439374ac144cc0ecd4fd0b238ca2d193897312 (patch) | |
tree | 8ac175fb591b546d6195580181a6001ed251ad7e /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | eb144f5e73d20f5bfb08bdc5a7163d8ba0fefcc4 (diff) |
make this const correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 0880ebb53f..87163860cc 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1087,7 +1087,7 @@ void ReachabilityCloner::merge(const DSNodeHandle &NH, /// 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 @@ void ReachabilityCloner::mergeCallSite(const DSCallSite &DestCS, 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))); } |