From 4ae8dcc91eb3af34e76f0e00dbc70195fb33122d Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 10 Jan 2016 14:01:39 +0000 Subject: [PATCH] * make the resultdef of left and right equal when comparing a dynarray with nil (for llvm) git-svn-id: trunk@32902 - --- compiler/nadd.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/nadd.pas b/compiler/nadd.pas index 6dbc8b32fb..cd14a42ef0 100644 --- a/compiler/nadd.pas +++ b/compiler/nadd.pas @@ -1995,6 +1995,10 @@ implementation begin if not(nodetype in [equaln,unequaln]) then CGMessage3(type_e_operator_not_supported_for_types,node2opstr(nodetype),ld.typename,rd.typename); + if lt=niln then + inserttypeconv_explicit(left,right.resultdef) + else + inserttypeconv_explicit(right,left.resultdef) end {$ifdef SUPPORT_MMX}