mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Kill initialize_var instruction.
Remove the initialize_var instruction now that DI fully diagnoses initialization problems. Change String-to-NSString bridging to explicitly invoke String's default constructor; it was the last remaining user of initialize_var. Remove dead code to emit an implicit default constructor without a body. Swift SVN r11066
This commit is contained in:
@@ -298,12 +298,6 @@ public:
|
||||
return insert(new (F.getModule()) StoreWeakInst(loc, value, dest, isInit));
|
||||
}
|
||||
|
||||
InitializeVarInst *createInitializeVar(SILLocation Loc, SILValue DestAddr,
|
||||
bool canDefaultConstruct) {
|
||||
return insert(new (F.getModule())
|
||||
InitializeVarInst(Loc, DestAddr, canDefaultConstruct));
|
||||
}
|
||||
|
||||
CopyAddrInst *createCopyAddr(SILLocation loc, SILValue srcAddr,
|
||||
SILValue destAddr, IsTake_t isTake,
|
||||
IsInitialization_t isInitialize) {
|
||||
|
||||
Reference in New Issue
Block a user