summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-01-12 14:53:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-01-12 14:53:45 +0000
commit6dced92447eca70f80e9e8db0d38a9d5b8f3fc05 (patch)
treeb52249661d1f3da0e5f34ea4a78c7e65661f6497 /llvm/lib/CodeGen
parent42e7e989080da38df04c2fbc254a4a14c6fd6faa (diff)
downloadbcm5719-llvm-6dced92447eca70f80e9e8db0d38a9d5b8f3fc05.tar.gz
bcm5719-llvm-6dced92447eca70f80e9e8db0d38a9d5b8f3fc05.zip
Shut up warnings with GCC 3.4.3 about uninitialized variables.
llvm-svn: 19512
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 881784d08c5..f3b344bb8c1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -601,7 +601,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
const Type *IntPtrTy = TLI.getTargetData().getIntPtrType();
std::vector<std::pair<SDOperand, const Type*> > Args;
- const char *FnName;
+ const char *FnName = 0;
if (Node->getOpcode() == ISD::MEMSET) {
Args.push_back(std::make_pair(Tmp2, IntPtrTy));
// 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));
FnName = Node->getOpcode() == ISD::MEMMOVE ? "memmove" : "memcpy";
} else {
- FnName = 0;
assert(0 && "Unknown op!");
}
std::pair<SDOperand,SDOperand> CallResult =
OpenPOWER on IntegriCloud