[cfe-commits] r127039 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Bill Wendling
isanbard at gmail.com
Fri Mar 4 13:46:03 PST 2011
Author: void
Date: Fri Mar 4 15:46:03 2011
New Revision: 127039
URL: http://llvm.org/viewvc/llvm-project?rev=127039&view=rev
Log:
Initialize variable.
Modified:
cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=127039&r1=127038&r2=127039&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Fri Mar 4 15:46:03 2011
@@ -484,7 +484,7 @@
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 @@
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).
More information about the cfe-commits
mailing list