forked from OSchip/llvm-project
Ugh, for some reason, I can't call this unless the reference is const!?!?!?
llvm-svn: 20732
This commit is contained in:
parent
13429dc5af
commit
e8a43291cd
|
@ -560,7 +560,7 @@ public:
|
||||||
/// mergeCallSite - Merge the nodes reachable from the specified src call
|
/// mergeCallSite - Merge the nodes reachable from the specified src call
|
||||||
/// site into the nodes reachable from DestCS.
|
/// 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(); }
|
bool clonedAnyNodes() const { return !NodeMap.empty(); }
|
||||||
|
|
||||||
|
|
|
@ -1087,7 +1087,7 @@ void ReachabilityCloner::merge(const DSNodeHandle &NH,
|
||||||
|
|
||||||
/// mergeCallSite - Merge the nodes reachable from the specified src call
|
/// mergeCallSite - Merge the nodes reachable from the specified src call
|
||||||
/// site into the nodes reachable from DestCS.
|
/// site into the nodes reachable from DestCS.
|
||||||
void ReachabilityCloner::mergeCallSite(DSCallSite &DestCS,
|
void ReachabilityCloner::mergeCallSite(const DSCallSite &DestCS,
|
||||||
const DSCallSite &SrcCS) {
|
const DSCallSite &SrcCS) {
|
||||||
merge(DestCS.getRetVal(), SrcCS.getRetVal());
|
merge(DestCS.getRetVal(), SrcCS.getRetVal());
|
||||||
unsigned MinArgs = DestCS.getNumPtrArgs();
|
unsigned MinArgs = DestCS.getNumPtrArgs();
|
||||||
|
@ -1097,7 +1097,7 @@ void ReachabilityCloner::mergeCallSite(DSCallSite &DestCS,
|
||||||
merge(DestCS.getPtrArg(a), SrcCS.getPtrArg(a));
|
merge(DestCS.getPtrArg(a), SrcCS.getPtrArg(a));
|
||||||
|
|
||||||
for (unsigned a = MinArgs, e = SrcCS.getNumPtrArgs(); a != e; ++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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue