From 6c9540e92b2a8a43494a9cb2bd6b99bc1a7cd126 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 4 Mar 2011 21:46:03 +0000 Subject: Initialize variable. llvm-svn: 127039 --- clang/lib/CodeGen/CodeGenFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 4ab327712a59..958eca75402c 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -484,7 +484,7 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond, if (CondBOp->getOpcode() == BO_LAnd) { // If we have "1 && X", simplify the code. "0 && X" would have constant // folded if the case was simple enough. - bool ConstantBool; + bool ConstantBool = false; if (ConstantFoldsToSimpleInteger(CondBOp->getLHS(), ConstantBool) && ConstantBool) { // br(1 && X) -> br(X). @@ -518,7 +518,7 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond, if (CondBOp->getOpcode() == BO_LOr) { // If we have "0 || X", simplify the code. "1 || X" would have constant // folded if the case was simple enough. - bool ConstantBool; + bool ConstantBool = false; if (ConstantFoldsToSimpleInteger(CondBOp->getLHS(), ConstantBool) && !ConstantBool) { // br(0 || X) -> br(X). -- cgit v1.2.3