Skip to content

Commit c718126

Browse files
authored
Update OSLogOptimizationc.cpp to fix warning.
Fixes the following warning: ```console third_party/unsupported_toolchains/swift/src/swift/lib/SILOptimizer/Mandatory/OSLogOptimization.cpp:396:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ ```
1 parent 5ca0383 commit c718126

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
@@ -390,7 +390,7 @@ static SILValue emitCodeForSymbolicValue(SymbolicValue symVal,
390390
return newStructInst;
391391
}
392392
default: {
393-
assert(false && "Symbolic value kind is not supported");
393+
llvm_unreachable("Symbolic value kind is not supported");
394394
}
395395
}
396396
}

0 commit comments

Comments
 (0)