projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00bebff
)
Do not refetch a value, which we already have.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 25 Apr 2012 12:44:42 +0000
(14:44 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 07:57:54 +0000
(09:57 +0200)
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
441e3e3
..
75b674c
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-2385,7
+2385,7
@@
static ir_node *create_cast(dbg_info *dbgi, ir_node *value_node,
if (from_var != NULL) {
ir_node *const addr = create_symconst(dbgi, from_var->v.entity);
ir_node *const base = deref_address(dbgi, from_var->base.type, addr);
- value_node = new_d_Add(dbgi, value_node, base,
get_ir_mode_storage(from_type)
);
+ value_node = new_d_Add(dbgi, value_node, base,
mode
);
}
if (to_var != NULL) {
ir_node *const addr = create_symconst(dbgi, to_var->v.entity);