initialize sum variable
authorChris Lattner <sabre@nondot.org>
Sun, 24 Mar 2002 07:03:10 +0000 (07:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Mar 2002 07:03:10 +0000 (07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1982 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/DecomposeMultiDimRefs/mixedindices.c

index 13fb6909fccaf0ffec3834fbe469f49d503dc613..b2d2e110772749a4c87c282f19dbb4c4b8b35781 100644 (file)
@@ -27,7 +27,7 @@ typedef struct Mixed_struct {
 double
 InitializeMixed(Mixed_t* M, int base)
 {
-  double sum;
+  double sum = 0;
   int i, j;
   
   for (i=0; i < 10; ++i) {