From 56a40512967bd98341ef60e592015d72a2c9dff6 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 28 Oct 2015 18:25:26 +0000 Subject: [PATCH] * replaced another {$ifdef x86} with a virtual method call (the pointer type of voidpointertype corresponds to the default pointer type) git-svn-id: trunk@32181 - --- compiler/ncgmem.pas | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/ncgmem.pas b/compiler/ncgmem.pas index d8cedd5df5..b09c3329e1 100644 --- a/compiler/ncgmem.pas +++ b/compiler/ncgmem.pas @@ -289,9 +289,7 @@ implementation if (cs_use_heaptrc in current_settings.globalswitches) and (cs_checkpointer in current_settings.localswitches) and not(cs_compilesystem in current_settings.moduleswitches) and -{$ifdef x86} - (tcpupointerdef(left.resultdef).x86pointertyp = tcpupointerdefclass(cpointerdef).default_x86_data_pointer_type) and -{$endif x86} + tpointerdef(left.resultdef).compatible_with_pointerdef_size(tpointerdef(voidpointertype)) and not(nf_no_checkpointer in flags) and { can be NR_NO in case of LOC_CONSTANT } (location.reference.base<>NR_NO) then