From nobody Wed Mar 23 19:59:45 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DBB2C1A47233 for ; Wed, 23 Mar 2022 19:59:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KNzhx3mqCz4VX7 for ; Wed, 23 Mar 2022 19:59:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4E01F1BDB for ; Wed, 23 Mar 2022 19:59:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22NJxjkC046145 for ; Wed, 23 Mar 2022 19:59:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22NJxjMQ046144 for bugs@FreeBSD.org; Wed, 23 Mar 2022 19:59:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262608] Clang assertion failed in 14-CURRENT compiling old versions of Wine Date: Wed, 23 Mar 2022 19:59:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable13+ mfc-stable12+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648065585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GK4TiwvY9lwm+shvEMLcD5XRwxx0ki6P4IVQC5t7L84=; b=S/Rt0fcDyqF3Td11RAlk1TECKQB2N8TXv/F+g8VZhhkrzlmmPp2S1nai9ABHAJL4oEtki5 bwl5HWRcJxIzLx/VLseZ+3uXO11VqgD7q7Fg/HSlpld/K9BzWsrPUu8KEbX1oPgVbZz4fr TbPAcRYUqZIIKkvFNYsfbiRTsdTpy1HFnGlMfwIYj8fn3KrAl3osehG6XJNVTmWNh06CAV RcVtNK/iLNM47H1zGP0qK5bVJlQaLi+q8HIoeEdF6h0zMFjV1Aidt4hmveKqA1myJP4TH+ lE0CcC+MONNNcAO5XmovshEtADu7xrTUlCwFLoDochGN5mQt/mvWB2j3UvjXSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648065585; a=rsa-sha256; cv=none; b=U7ugS0GZTdE/WiQawyj4b0WipZ1dfbQmiit8/WdNIRJajeom+xu5JoZYdtlLjS7A6cfZPb mb5eSl6dJQkoKQyOQiopx+AiJwdf/JfvD+6pTMICbWg9wc16qIxz9c25Z19Lb/uWZ+ifgf 00r90Vm020gaIna6e1oovXDpZxnh42TbxGc1+Z7obJhKJtmvFUaq1oOBCWjRuaInDvGZAt DWu5oViJptIPdmaaoB4siT6KrS6tseErbK530BUPDhB4R7PRnBTTIeJMpVg15noCBY+sJB feDLUgYcQwh6hIok4G1YczlL/QCouRq66IzGmTwvV0jFtpfAJaH5Nv8Tguk8jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262608 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D420907a4387f4337e481797e96093c6bd= ee2fd2c commit 420907a4387f4337e481797e96093c6bdee2fd2c Author: Dimitry Andric AuthorDate: 2022-03-19 19:59:04 +0000 Commit: Dimitry Andric CommitDate: 2022-03-23 19:57:46 +0000 Apply llvm fix for assertion compiling certain versions of Wine Merge commit b9ca73e1a8fd from llvm git (by Stephen Tozer): [DebugInfo] Correctly handle arrays with 0-width elements in GEP salvaging Fixes an issue where GEP salvaging did not properly account for GEP instructions which stepped over array elements of width 0 (effectivel= y a no-op). This unnecessarily produced long expressions by appending `... + (x * 0)` and potentially extended the number of SSA values used in the dbg.value. This also erroneously triggered an assert in the salvage function that the element width would be strictly positive. These issues are resolved by simply ignoring these useless operands. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D111809 PR: 262608 Reported by: Damjan Jovanovic MFC after: 3 days (cherry picked from commit 1b3bef43e3cb7fb0ab49b813839915514c1134cc) contrib/llvm-project/llvm/lib/IR/Operator.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=