mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Hide the constructors of SILFunction/SILGlobalVariable
behind factory methods. Swift SVN r11967
This commit is contained in:
@@ -121,8 +121,8 @@ SILFunction *SILModule::getOrCreateSharedFunction(SILLocation loc,
|
||||
return fn;
|
||||
}
|
||||
|
||||
return new (*this) SILFunction(*this, linkage, name, type,
|
||||
loc, isBareSILFunction, isTransparent);
|
||||
return SILFunction::create(*this, linkage, name, type,
|
||||
loc, isBareSILFunction, isTransparent);
|
||||
}
|
||||
|
||||
ArrayRef<SILType> ValueBase::getTypes() const {
|
||||
|
||||
Reference in New Issue
Block a user