aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-23 17:05:06 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-23 17:05:06 +0000
commit3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1 (patch)
treef87755496a32a67d4b390eadbc9d38fc92d9c2fc /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent582a0999fbb43cafb824d0cf5deb0bd81448e47c (diff)
downloadllvm-3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1.zip
llvm-3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1.tar.gz
llvm-3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1.tar.bz2
Null initialize a few variables flagged by
clang's -Wuninitialized-experimental warning. While these don't look like real bugs, clang's -Wuninitialized-experimental analysis is stricter than GCC's, and these fixes have the benefit of being general nice cleanups. llvm-svn: 124073
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 89b1e9b..f6aea1f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4931,7 +4931,7 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc DL, SDVTList VTs,
const SDValue *Ops, unsigned NumOps) {
bool DoCSE = VTs.VTs[VTs.NumVTs-1] != MVT::Glue;
MachineSDNode *N;
- void *IP;
+ void *IP = 0;
if (DoCSE) {
FoldingSetNodeID ID;