mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Ugh, for some reason, I can't call this unless the reference is const!?!?!?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f90a94c5d
commit
c26f6d3899
@ -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(); }
|
||||
|
||||
|
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user