Permalink
Browse files

Placated compiler by initializing variable

  • Loading branch information...
1 parent 067a294 commit 041ade66d52e62fb3fd758fec8fdcc7b72f47ffe @nipunn1313 nipunn1313 committed with Matt Pharr May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 opt.cpp
View
@@ -3292,7 +3292,7 @@ lCoalesceGathers(const std::vector<llvm::CallInst *> &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)

0 comments on commit 041ade6

Please sign in to comment.