[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 2 12:51:06 PST 2005
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.64 -> 1.65
---
Log message:
This is no longer needed. Global variables with undef initializers can be
initialized to anything, including garbage.
---
Diffs of the changes: (+0 -2)
ExecutionEngine.cpp | 2 --
1 files changed, 2 deletions(-)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.64 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.65
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.64 Sat Jan 8 14:13:19 2005
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Wed Feb 2 14:50:50 2005
@@ -450,8 +450,6 @@
//
void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
if (isa<UndefValue>(Init)) {
- // FIXME: THIS SHOULD NOT BE NEEDED.
- memset(Addr, 0, (size_t)getTargetData().getTypeSize(Init->getType()));
return;
} else if (Init->getType()->isFirstClassType()) {
GenericValue Val = getConstantValue(Init);
More information about the llvm-commits
mailing list