Initialize some pointers to quiet the compiler (when doing build_gcc
authorBill Wendling <isanbard@gmail.com>
Sun, 12 Nov 2006 11:10:39 +0000 (11:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 12 Nov 2006 11:10:39 +0000 (11:10 +0000)
builds).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31694 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/llvmAsmParser.y

index 4611262b0121260b65f55db3ca2d65e835766593..f9a090a1634ddc83c14082e068d2b2d57bc9c86b 100644 (file)
@@ -2666,8 +2666,8 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
     CHECK_FOR_ERROR
   }
   | OptTailCall OptCallingConv TypesV ValueRef '(' ValueRefListE ')'  {
-    const PointerType *PFTy;
-    const FunctionType *Ty;
+    const PointerType *PFTy = 0;
+    const FunctionType *Ty = 0;
 
     if (!(PFTy = dyn_cast<PointerType>($3->get())) ||
         !(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {