mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +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:
@@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user