Shut up warnings with GCC 3.4.3 about uninitialized variables.

llvm-svn: 19512
This commit is contained in:
Reid Spencer 2005-01-12 14:53:45 +00:00
parent 42e7e98908
commit 6dced92447
1 changed files with 1 additions and 2 deletions

View File

@ -601,7 +601,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
const Type *IntPtrTy = TLI.getTargetData().getIntPtrType(); const Type *IntPtrTy = TLI.getTargetData().getIntPtrType();
std::vector<std::pair<SDOperand, const Type*> > Args; std::vector<std::pair<SDOperand, const Type*> > Args;
const char *FnName; const char *FnName = 0;
if (Node->getOpcode() == ISD::MEMSET) { if (Node->getOpcode() == ISD::MEMSET) {
Args.push_back(std::make_pair(Tmp2, IntPtrTy)); Args.push_back(std::make_pair(Tmp2, IntPtrTy));
// Extend the ubyte argument to be an int value for the call. // Extend the ubyte argument to be an int value for the call.
@ -617,7 +617,6 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
Args.push_back(std::make_pair(Tmp4, IntPtrTy)); Args.push_back(std::make_pair(Tmp4, IntPtrTy));
FnName = Node->getOpcode() == ISD::MEMMOVE ? "memmove" : "memcpy"; FnName = Node->getOpcode() == ISD::MEMMOVE ? "memmove" : "memcpy";
} else { } else {
FnName = 0;
assert(0 && "Unknown op!"); assert(0 && "Unknown op!");
} }
std::pair<SDOperand,SDOperand> CallResult = std::pair<SDOperand,SDOperand> CallResult =