mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Optimization remarks can take SILType by value
No need to pass a pointer to SILType; it is a pointer-sized value itself.
This commit is contained in:
@@ -535,7 +535,7 @@ static bool tryToSpeculateTarget(FullApplySite AI, ClassHierarchyAnalysis *CHA,
|
||||
RemarkPassed R("PartialSpecDevirt", *AI.getInstruction());
|
||||
R << "Partially devirtualized call with run-time checks for "
|
||||
<< NV("NumSubTypesChecked", Subs.size()) << " subclasses of "
|
||||
<< NV("ClassType", &ClassType);
|
||||
<< NV("ClassType", ClassType);
|
||||
if (NotHandledSubsNum)
|
||||
R << ", number of subclasses not devirtualized: "
|
||||
<< NV("NotHandledSubsNum", NotHandledSubsNum);
|
||||
@@ -549,7 +549,7 @@ static bool tryToSpeculateTarget(FullApplySite AI, ClassHierarchyAnalysis *CHA,
|
||||
auto RB = [&]() {
|
||||
return RemarkPassed("SpecDevirt", *AI.getInstruction())
|
||||
<< "Devirtualized call with run-time checks for the derived classes "
|
||||
"of " << NV("ClassType", &ClassType);
|
||||
"of " << NV("ClassType", ClassType);
|
||||
};
|
||||
|
||||
// At this point it is known that there is only one remaining method
|
||||
|
||||
Reference in New Issue
Block a user