summaryrefslogtreecommitdiff
path: root/compiler/ncgld.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-03-09 22:09:43 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-03-09 22:09:43 +0000
commit56c006fa41c09f5e1810538e986c49927790db60 (patch)
tree32b62debc2aba14e58b107e696023e36d8cbdfcc /compiler/ncgld.pas
parent9314fae10d8cb82e76c7ea87c6c2bab8155b7d81 (diff)
downloadfpc-56c006fa41c09f5e1810538e986c49927790db60.tar.gz
* compilation with -Oodfa fixed
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@35555 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgld.pas')
-rw-r--r--compiler/ncgld.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas
index 6bfd9bafa9..0980a1ee04 100644
--- a/compiler/ncgld.pas
+++ b/compiler/ncgld.pas
@@ -323,6 +323,7 @@ implementation
{ Enable size optimization with -Os or PIC code is generated and PIC uses GOT }
size_opt:=(cs_opt_size in current_settings.optimizerswitches)
or ((cs_create_pic in current_settings.moduleswitches) and (tf_pic_uses_got in target_info.flags));
+ hreg_tv_rec:=NR_INVALID;
if size_opt then
begin
{ Load a pointer to the thread var record into a register. }
@@ -568,7 +569,7 @@ implementation
LOC_CREFERENCE,
LOC_REFERENCE:
begin
- if is_implicit_pointer_object_type(left.resultdef) or
+ if is_implicit_pointer_object_type(left.resultdef) or
(left.resultdef.typ=classrefdef) then
begin
vd:=left.resultdef;