Skip to content

Commit cbbf936

Browse files
committed
---
yaml --- r: 349197 b: refs/heads/master-next c: 782d6cd h: refs/heads/master i: 349195: 4305590
1 parent 71817e4 commit cbbf936

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 851d9f44d0d8b338340aa5afd1ae56f111a51e8c
3+
refs/heads/master-next: 782d6cd15c7e702bf5ca481028c05a570c10e00b
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/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)