Skip to content

Commit 782d6cd

Browse files
committed
[Gardening] Documented ArgumentDescriptor method.
Added brief doc for FunctionSignatureOpts' ArgumentDescriptor's method canOptimizeLiveArg and tweaked the style to add braces around the body of a single line if clause.
1 parent 851d9f4 commit 782d6cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/SILOptimizer/FunctionSignatureTransforms/FunctionSignatureOpts.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,13 @@ struct ArgumentDescriptor {
111111
return Arg->hasConvention(P);
112112
}
113113

114+
/// Returns true if all function signature opt passes are able to process
115+
/// this.
114116
bool canOptimizeLiveArg() const {
115-
if (Arg->getType().isObject())
117+
if (Arg->getType().isObject()) {
116118
return true;
119+
}
120+
117121
// @in arguments of generic types can be processed.
118122
if (Arg->getType().hasArchetype() &&
119123
Arg->getType().isAddress() &&

0 commit comments

Comments
 (0)