From 4484e43d5b5a3769b0379d3ea0ec16fff02fb358 Mon Sep 17 00:00:00 2001 From: "Zou, Nanhai" Date: Mon, 4 Feb 2013 15:10:40 +0800 Subject: [PATCH] Fix uninitialize value warning Give a inital value to shut up compiler Signed-off-by: Zou Nan hai Reviewed-by: Zhigang Gong --- backend/src/llvm/llvm_gen_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/llvm/llvm_gen_backend.cpp b/backend/src/llvm/llvm_gen_backend.cpp index 8e6188f..086bb25 100644 --- a/backend/src/llvm/llvm_gen_backend.cpp +++ b/backend/src/llvm/llvm_gen_backend.cpp @@ -1894,7 +1894,7 @@ namespace gbe const ir::Tuple dstTuple = ctx.arrayTuple(&dstTupleData[0], elemNum); const ir::Tuple srcTuple = ctx.arrayTuple(&srcTupleData[0], 4); - ir::Type srcType, dstType; + ir::Type srcType = ir::TYPE_U32, dstType = ir::TYPE_U32; switch(it->second) { case GEN_OCL_READ_IMAGE0: @@ -1944,7 +1944,7 @@ namespace gbe } const ir::Tuple srcTuple = ctx.arrayTuple(&srcTupleData[0], 7); - ir::Type srcType, coordType; + ir::Type srcType = ir::TYPE_U32, coordType = ir::TYPE_U32; switch(it->second) { case GEN_OCL_WRITE_IMAGE0: -- 2.7.4