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:
@@ -884,23 +884,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/// InitializeVarInst - Represents a default initialization of a variable.
|
||||
class InitializeVarInst
|
||||
: public UnaryInstructionBase<ValueKind::InitializeVarInst,
|
||||
SILInstruction,
|
||||
/*HAS_RESULT*/ false>
|
||||
{
|
||||
bool CanDefaultConstruct;
|
||||
|
||||
public:
|
||||
InitializeVarInst(SILLocation Loc, SILValue Dest, bool CanDefaultConstruct)
|
||||
: UnaryInstructionBase(Loc, Dest),
|
||||
CanDefaultConstruct(CanDefaultConstruct) {}
|
||||
|
||||
/// True if this InitializeVar can be lowered to a default constructor call.
|
||||
bool canDefaultConstruct() const { return CanDefaultConstruct; }
|
||||
};
|
||||
|
||||
/// CopyAddrInst - Represents a copy from one memory location to another. This
|
||||
/// is similar to:
|
||||
/// %1 = load %src
|
||||
|
||||
Reference in New Issue
Block a user