Skip to content

Commit 3807362

Browse files
committed
Sema: Fix -Wsometimes-uninitialized warning
1 parent 50b5ecf commit 3807362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/MiscDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6808,7 +6808,7 @@ TypeChecker::omitNeedlessWords(AbstractFunctionDecl *afd) {
68086808
// Handle contextual type, result type, and returnsSelf.
68096809
Type contextType = afd->getDeclContext()->getDeclaredInterfaceType();
68106810
Type resultType;
6811-
bool returnsSelf;
6811+
bool returnsSelf = false;
68126812

68136813
if (auto func = dyn_cast<FuncDecl>(afd)) {
68146814
resultType = func->getResultInterfaceType();

0 commit comments

Comments
 (0)