SILArgument: Make Decls mandatory for function arguments.

Swift SVN r11099
This commit is contained in:
Adrian Prantl
2013-12-10 23:30:23 +00:00
parent 61318e33f0
commit 2acb71831e
8 changed files with 100 additions and 45 deletions

View File

@@ -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); }