From 20115617d4979d5efa5b7741d5ab7a0978a9eb22 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 23 Apr 2011 08:21:06 +0000 Subject: [PATCH] Silence an overzealous uninitialized variable warning from GCC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130053 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index e156cefea18..4534e853914 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -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.