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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user