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

@@ -269,7 +269,7 @@ public:
RValue visitType(CanType t) {
SILValue arg = new (gen.SGM.M)
SILArgument(gen.getLoweredType(t), parent, loc.getAsASTNode<VarDecl>());
SILArgument(gen.getLoweredType(t), parent, loc.getAsASTNode<ValueDecl>());
ManagedValue mv = isa<LValueType>(t)
? ManagedValue(arg, ManagedValue::LValue)
: gen.emitManagedRValueWithCleanup(arg);