mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
This is no longer needed. Global variables with undef initializers can be
initialized to anything, including garbage. llvm-svn: 20010
This commit is contained in:
parent
77fcb481a6
commit
11f76e4975
@ -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