aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
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
commit3bfbf4ea990930d153e58e153f319408341a94fe (patch)
tree3b95190c7ebcc69441e4059cdcf51c23cb6154e6 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent2b9378646d35526fe6ccef7b76b888d15e9c3a80 (diff)
Shut up warnings with GCC 3.4.3 about uninitialized variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 881784d08c..f3b344bb8c 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/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 =