[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Reid Spencer
reid at x10sys.com
Wed Jan 12 06:53:55 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.21 -> 1.22
---
Log message:
Shut up warnings with GCC 3.4.3 about uninitialized variables.
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.21 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.22
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.21 Tue Jan 11 11:46:49 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Wed Jan 12 08:53:45 2005
@@ -601,7 +601,7 @@
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 @@
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 =
More information about the llvm-commits
mailing list