diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-04 21:46:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-04 21:46:03 +0000 |
commit | 6c9540e92b2a8a43494a9cb2bd6b99bc1a7cd126 (patch) | |
tree | e57e07a1574693496c4bc6b94c723bbbc79da74b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 88842e45745423d53cee5d9f2e3d9d9320705efc (diff) | |
download | bcm5719-llvm-6c9540e92b2a8a43494a9cb2bd6b99bc1a7cd126.tar.gz bcm5719-llvm-6c9540e92b2a8a43494a9cb2bd6b99bc1a7cd126.zip |
Initialize variable.
llvm-svn: 127039
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 4ab327712a5..958eca75402 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). |