aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-04-23 08:21:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-04-23 08:21:06 +0000
commit20115617d4979d5efa5b7741d5ab7a0978a9eb22 (patch)
treec51aba73ec7084ca999478da3d15047dd08fe941
parent83eb90690685a5e0658f06e9a1e2dc7d086afc7a (diff)
downloadexternal_llvm-20115617d4979d5efa5b7741d5ab7a0978a9eb22.zip
external_llvm-20115617d4979d5efa5b7741d5ab7a0978a9eb22.tar.gz
external_llvm-20115617d4979d5efa5b7741d5ab7a0978a9eb22.tar.bz2
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
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index e156cef..4534e85 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.