aboutsummaryrefslogtreecommitdiff
path: root/x86_64-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64-gen.c')
-rw-r--r--x86_64-gen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c
index a80020f..10003d1 100644
--- a/x86_64-gen.c
+++ b/x86_64-gen.c
@@ -335,8 +335,8 @@ void load(int r, SValue *sv)
SValue v1;
#ifdef TCC_TARGET_PE
- if (pe_dllimport(r, sv, load))
- return;
+ SValue v2;
+ sv = pe_getimport(sv, &v2);
#endif
fr = sv->r;
@@ -469,8 +469,8 @@ void store(int r, SValue *v)
int pic = 0;
#ifdef TCC_TARGET_PE
- if (pe_dllimport(r, v, store))
- return;
+ SValue v2;
+ v = pe_getimport(v, &v2);
#endif
ft = v->type.t;