mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +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:
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user