diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-02-13 07:23:01 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-02-13 07:23:01 +0000 |
commit | b571924f32590f026889f227f03570e59e5c29b7 (patch) | |
tree | 2c27bc95bb4d3437b04781b52ab15d6aaa162f8e /lib/Sema/SemaInit.cpp | |
parent | ae6288981b77d6230bf62055d3bb6380580aa1e8 (diff) |
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
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |