From b571924f32590f026889f227f03570e59e5c29b7 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 13 Feb 2010 07:23:01 +0000 Subject: [PATCH] Silence a GCC warning about a possibly uninitialized variable. It's data flow only flows so far it seems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96085 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaInit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index d47b8caec0..7b4a41777b 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -744,7 +744,7 @@ void InitListChecker::CheckScalarType(const InitializedEntity &Entity, SemaRef.PerformCopyInitialization(Entity, expr->getLocStart(), SemaRef.Owned(expr)); - Expr *ResultExpr; + Expr *ResultExpr = 0; if (Result.isInvalid()) hadError = true; // types weren't compatible. -- 2.40.0