Silence an overzealous uninitialized variable warning from GCC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Apr 2011 08:21:06 +0000 (08:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 23 Apr 2011 08:21:06 +0000 (08:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130053 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index e156cefea184329e6b2cbdaaa1b25a8731ecbc1a..4534e853914dd01cd1de7a089802b67bc42a05f4 100644 (file)
@@ -1608,7 +1608,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) {
     if (Opcode != ISD::AND && ((Val >> ShlVal) << ShlVal) != Val)
       break;
 
-    unsigned ShlOp, Op;
+    unsigned ShlOp, Op = 0;
     EVT CstVT = NVT;
 
     // Check the minimum bitwidth for the new constant.