diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-30 22:25:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-30 22:25:13 +0000 |
commit | 035e4949c5f3c1dda9a9bf31db3f29201d70a25f (patch) | |
tree | bb120b8253868b8637b0599b48a70f259777ccde /vm.c | |
parent | 85bc3bdb08ef4380d3d4c78e773a02dadc011558 (diff) | |
download | ruby-035e4949c5f3c1dda9a9bf31db3f29201d70a25f.tar.gz |
* 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
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |