OSDN Git Service

fix uninitialized variable
authorChris Lattner <sabre@nondot.org>
Sun, 11 Feb 2007 19:12:18 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Feb 2007 19:12:18 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34182 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index 30ca5c3..17610f9 100644 (file)
@@ -93,6 +93,7 @@ unsigned Value::getNumUses() const {
 }
 
 static bool getSymTab(Value *V, ValueSymbolTable *&ST) {
+  ST = 0;
   if (Instruction *I = dyn_cast<Instruction>(V)) {
     if (BasicBlock *P = I->getParent())
       if (Function *PP = P->getParent())