From 032ad0848a87375729e54443195ccc418fc5c979 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 Feb 2005 20:50:50 +0000 Subject: [PATCH] This is no longer needed. Global variables with undef initializers can be initialized to anything, including garbage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20010 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/ExecutionEngine.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 8810b91b8ac..d6fb1710cce 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -450,8 +450,6 @@ GenericValue ExecutionEngine::LoadValueFromMemory(GenericValue *Ptr, // void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) { if (isa(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);