mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILArgument: Make Decls mandatory for function arguments.
Swift SVN r11099
This commit is contained in:
@@ -25,10 +25,10 @@ class SILArgument : public ValueBase {
|
||||
void operator delete(void *Ptr, size_t) = delete;
|
||||
|
||||
SILBasicBlock *ParentBB;
|
||||
ValueDecl *Decl;
|
||||
const ValueDecl *Decl;
|
||||
public:
|
||||
explicit
|
||||
SILArgument(SILType Ty, SILBasicBlock *ParentBB, ValueDecl *D = nullptr);
|
||||
SILArgument(SILType Ty, SILBasicBlock *ParentBB, const ValueDecl *D = nullptr);
|
||||
|
||||
/// getType() is ok since this is known to only have one type.
|
||||
SILType getType(unsigned i = 0) const { return ValueBase::getType(i); }
|
||||
|
||||
Reference in New Issue
Block a user