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:
Joe Groff
2013-12-10 03:36:59 +00:00
parent 2d61bd31f8
commit 02a0e996c4
25 changed files with 50 additions and 150 deletions

View File

@@ -124,7 +124,6 @@ static bool checkAllocBoxUses(AllocBoxInst *ABI, ValueBase *V,
if (isa<StrongRetainInst>(User) ||
isa<CopyAddrInst>(User) ||
isa<LoadInst>(User) ||
isa<InitializeVarInst>(User) ||
isa<ProtocolMethodInst>(User) ||
(isa<StoreInst>(User) && UI->getOperandNumber() == 1) ||
(isa<AssignInst>(User) && UI->getOperandNumber() == 1)) {