aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.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/Execution.cpp
parentac54a62fd2e2c9bc430eb9865f2c5676955a4495 (diff)
downloadllvm-ff38cf8880f51331c48178d7d4d4474649ef8f83.zip
llvm-ff38cf8880f51331c48178d7d4d4474649ef8f83.tar.gz
llvm-ff38cf8880f51331c48178d7d4d4474649ef8f83.tar.bz2
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/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 0fff38c..281f774 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -610,7 +610,7 @@ void Interpreter::popStackAndReturnValueToCaller (const Type *RetTy,
if (RetTy && RetTy->isInteger()) { // Nonvoid return type?
ExitValue = Result; // Capture the exit value of the program
} else {
- memset(&ExitValue, 0, sizeof(ExitValue));
+ memset(&ExitValue.Untyped, 0, sizeof(ExitValue.Untyped));
}
} else {
// If we have a previous stack frame, and we have a previous call,