diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-06-01 22:23:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-06-01 22:23:29 +0000 |
commit | ff38cf8880f51331c48178d7d4d4474649ef8f83 (patch) | |
tree | d58bc828590be06fb7c6618b3e2618011046ec75 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | |
parent | ac54a62fd2e2c9bc430eb9865f2c5676955a4495 (diff) | |
download | bcm5719-llvm-ff38cf8880f51331c48178d7d4d4474649ef8f83.tar.gz bcm5719-llvm-ff38cf8880f51331c48178d7d4d4474649ef8f83.zip |
For PR1486:
Avoid overwriting the APInt instance with 0 bytes which causes the bitwidth
to be set to 0 (illegal) producing a subsequent assert.
llvm-svn: 37391
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 0792edddc21..3a156bf51c3 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -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(); |