mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
For PR1486:
Avoid overwriting the APInt instance with 0 bytes which causes the bitwidth to be set to 0 (illegal) producing a subsequent assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -54,7 +54,7 @@ ExecutionEngine *Interpreter::create(ModuleProvider *MP, std::string* ErrStr) {
|
||||
//
|
||||
Interpreter::Interpreter(Module *M) : ExecutionEngine(M), TD(M) {
|
||||
|
||||
memset(&ExitValue, 0, sizeof(ExitValue));
|
||||
memset(&ExitValue.Untyped, 0, sizeof(ExitValue.Untyped));
|
||||
setTargetData(&TD);
|
||||
// Initialize the "backend"
|
||||
initializeExecutionEngine();
|
||||
|
Reference in New Issue
Block a user