summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 06:43:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 06:43:13 +0000
commit37b8092c3bec8ba2be7ebab82ca9099b5bcb23f2 (patch)
tree20a660325ed4f457763cd1e173952e067d2c1261 /vm.c
parentb04814bf711ed170c674ca874d28dba8faed9484 (diff)
* vm.c (vm_exec): refix r34162; suppress warning and add description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 90f7e3e519..71d282d579 100644
--- a/vm.c
+++ b/vm.c
@@ -1216,8 +1216,8 @@ 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;
+#ifdef __llvm__ /* LLVM optimization guard for TestEnumerator#test_nested_itaration */
+ (void)__extension__({rb_thread_t t = *th; t;});
#endif
err = result;
th->state = 0;