mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Profiler] NFC: Remove unnecessary parameter
`SILProfiler::create` is only ever called when emitting a definition, so this check is redundant.
This commit is contained in:
@@ -322,10 +322,9 @@ void SILFunction::deleteSnapshot(int ID) {
|
||||
} while ((f = f->snapshots) != nullptr);
|
||||
}
|
||||
|
||||
void SILFunction::createProfiler(ASTNode Root, SILDeclRef forDecl,
|
||||
ForDefinition_t forDefinition) {
|
||||
void SILFunction::createProfiler(ASTNode Root, SILDeclRef Ref) {
|
||||
assert(!Profiler && "Function already has a profiler");
|
||||
Profiler = SILProfiler::create(Module, forDefinition, Root, forDecl);
|
||||
Profiler = SILProfiler::create(Module, Root, Ref);
|
||||
}
|
||||
|
||||
bool SILFunction::hasForeignBody() const {
|
||||
|
||||
Reference in New Issue
Block a user