aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-24 07:03:10 +0000
committerChris Lattner <sabre@nondot.org>2002-03-24 07:03:10 +0000
commitdea73e5ca848da44f583ae66247c2d067947d7bb (patch)
tree0e91159a5572583f7de17fc2d4021bc13d8bb9e2 /test
parentdfe412dc8b65301e1172bc12894edd3d56fadc44 (diff)
downloadexternal_llvm-dea73e5ca848da44f583ae66247c2d067947d7bb.zip
external_llvm-dea73e5ca848da44f583ae66247c2d067947d7bb.tar.gz
external_llvm-dea73e5ca848da44f583ae66247c2d067947d7bb.tar.bz2
initialize sum variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/DecomposeMultiDimRefs/mixedindices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/DecomposeMultiDimRefs/mixedindices.c b/test/Transforms/DecomposeMultiDimRefs/mixedindices.c
index 13fb690..b2d2e11 100644
--- a/test/Transforms/DecomposeMultiDimRefs/mixedindices.c
+++ b/test/Transforms/DecomposeMultiDimRefs/mixedindices.c
@@ -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) {