summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-06-01 22:23:29 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-06-01 22:23:29 +0000
commite770787be101e522425f658f76e4bb3091498f99 (patch)
tree7cebfde56638ae3e2a10a96932216738a0dc3932 /lib/ExecutionEngine/Interpreter/Interpreter.cpp
parente7ae1a9dee1b023dbd5f7d6d1fbdb165fbbcb26c (diff)
downloadllvm-e770787be101e522425f658f76e4bb3091498f99.tar.gz
llvm-e770787be101e522425f658f76e4bb3091498f99.tar.bz2
llvm-e770787be101e522425f658f76e4bb3091498f99.tar.xz
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
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index 0792edddc2..3a156bf51c 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/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();