mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 03:08:43 +00:00
The Interpreter was failing the AtExit UnitTest. This fixes it.
llvm-svn: 11367
This commit is contained in:
parent
50719e9dbc
commit
212ffba663
@ -523,6 +523,10 @@ void Interpreter::visitBinaryOperator(BinaryOperator &I) {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void Interpreter::exitCalled(GenericValue GV) {
|
||||
// runAtExitHandlers() assumes there are no stack frames, but
|
||||
// if exit() was called, then it had a stack frame. Blow away
|
||||
// the stack before interpreting atexit handlers.
|
||||
ECStack.clear ();
|
||||
runAtExitHandlers ();
|
||||
exit (GV.IntVal);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user