From 1e3eae463411fcbe88c4593bc19665e69e737d5c Mon Sep 17 00:00:00 2001 From: Minero Aoki Date: Sat, 23 May 2009 15:00:29 +0000 Subject: [PATCH] r4890@macbookpro: aamine | 2009-05-24 00:00:20 +0900 * net/loveruby/cflat/compiler/IRGenerator.java: refactoring: reorder stmts. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4233 1b9489fe-b721-0410-924e-b54b9192deb8 --- ChangeLog | 5 +++++ net/loveruby/cflat/compiler/IRGenerator.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fab3788..5d4783c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 24 00:01:07 2009 Minero Aoki + + * net/loveruby/cflat/compiler/IRGenerator.java: refactoring: + reorder stmts. + Sat May 23 23:31:17 2009 Minero Aoki * net/loveruby/cflat/compiler/IRGenerator.java: refactoring: use diff --git a/net/loveruby/cflat/compiler/IRGenerator.java b/net/loveruby/cflat/compiler/IRGenerator.java index 13a5cea..aca3c8a 100644 --- a/net/loveruby/cflat/compiler/IRGenerator.java +++ b/net/loveruby/cflat/compiler/IRGenerator.java @@ -492,10 +492,10 @@ class IRGenerator implements ASTVisitor { // #@@range/SuffixOp{ public Expr visit(SuffixOpNode node) { // #@@range/SuffixOp_init{ - Location loc = node.location(); - Type t = node.expr().type(); Expr expr = transformExpr(node.expr()); + Type t = node.expr().type(); Op op = binOp(node.operator()); + Location loc = node.location(); // #@@} if (isStatement()) {