mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
3ce110393b
commit
032ad0848a
@ -450,8 +450,6 @@ GenericValue ExecutionEngine::LoadValueFromMemory(GenericValue *Ptr,
|
||||
//
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user