From 035e4949c5f3c1dda9a9bf31db3f29201d70a25f Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 30 Dec 2011 22:25:13 +0000 Subject: * vm.c (vm_exec): add guard to prevent optimization for LLVM clang. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 67ca4393a5..2f38eeef2e 100644 --- a/vm.c +++ b/vm.c @@ -1216,6 +1216,9 @@ vm_exec(rb_thread_t *th) vm_loop_start: result = vm_exec_core(th, initial); if ((state = th->state) != 0) { +#ifdef __llvm__ + rb_thread_t t = *th; +#endif err = result; th->state = 0; goto exception_handler; -- cgit v1.2.3