Ugh, for some reason, I can't call this unless the reference is const!?!?!?

llvm-svn: 20732
This commit is contained in:
Chris Lattner 2005-03-21 10:00:45 +00:00
parent 13429dc5af
commit e8a43291cd
2 changed files with 3 additions and 3 deletions

View File

@ -560,7 +560,7 @@ public:
/// mergeCallSite - Merge the nodes reachable from the specified src call
/// site into the nodes reachable from DestCS.
///
void mergeCallSite(DSCallSite &DestCS, const DSCallSite &SrcCS);
void mergeCallSite(const DSCallSite &DestCS, const DSCallSite &SrcCS);
bool clonedAnyNodes() const { return !NodeMap.empty(); }

View File

@ -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(DSCallSite &DestCS,
void ReachabilityCloner::mergeCallSite(const DSCallSite &DestCS,
const DSCallSite &SrcCS) {
merge(DestCS.getRetVal(), SrcCS.getRetVal());
unsigned MinArgs = DestCS.getNumPtrArgs();
@ -1097,7 +1097,7 @@ void ReachabilityCloner::mergeCallSite(DSCallSite &DestCS,
merge(DestCS.getPtrArg(a), SrcCS.getPtrArg(a));
for (unsigned a = MinArgs, e = SrcCS.getNumPtrArgs(); a != e; ++a)
DestCS.addPtrArg(getClonedNH(SrcCS.getPtrArg(a)));
const_cast<DSCallSite&>(DestCS).addPtrArg(getClonedNH(SrcCS.getPtrArg(a)));
}