Skip to content

Commit 04471ff

Browse files
committed
[OSLogOpt] Fixed duplicated condition.
1 parent 6cd1302 commit 04471ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/OSLogOptimization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ static bool hasOnlyStoreUses(SingleValueInstruction *addressInst) {
11141114
if (numWritableArguments > 1)
11151115
return false;
11161116
SILArgumentConvention convention = applySite.getArgumentConvention(*use);
1117-
if (convention == SILArgumentConvention::Indirect_In_Guaranteed ||
1117+
if (convention == SILArgumentConvention::Indirect_In ||
11181118
convention == SILArgumentConvention::Indirect_In_Constant ||
11191119
convention == SILArgumentConvention::Indirect_In_Guaranteed) {
11201120
if (numWritableArguments > 0)

0 commit comments

Comments
 (0)