summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitff38cf8880f51331c48178d7d4d4474649ef8f83 (patch)
treed58bc828590be06fb7c6618b3e2618011046ec75 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
parentac54a62fd2e2c9bc430eb9865f2c5676955a4495 (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud