From 041ade66d52e62fb3fd758fec8fdcc7b72f47ffe Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Sun, 6 May 2012 06:59:17 -0700 Subject: [PATCH] Placated compiler by initializing variable --- opt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt.cpp b/opt.cpp index e6e68297..df4dd572 100644 --- a/opt.cpp +++ b/opt.cpp @@ -3292,7 +3292,7 @@ lCoalesceGathers(const std::vector &coalesceGroup) { // First, compute the shared base pointer for all of the gathers llvm::Value *basePtr = lComputeBasePtr(coalesceGroup[0], insertBefore); - int elementSize; + int elementSize = 0; if (coalesceGroup[0]->getType() == LLVMTypes::Int32VectorType) elementSize = 4; else if (coalesceGroup[0]->getType() == LLVMTypes::Int64VectorType)