head 1.1; access; symbols pkgsrc-2026Q3:1.1.0.2 pkgsrc-2026Q3-base:1.1; locks; strict; comment @// @; 1.1 date 2026.09.15.21.10.07; author tnn; state Exp; branches; next ; commitid 54G8qKXgGbDJfLVG; desc @@ 1.1 log @llvm: fix build with xcode 27 Apply commit a558d656043734cc4d02e0a0a12e4c308c28f8c7 from upstream. I won't pretend to understand modern C++ to the extent that I can adequately explain this change, but I guess it removes UB and does not change code behaviour. @ text @$NetBSD$ https://github.com/llvm/llvm-project/commit/a558d656043734cc4d02e0a0a12e4c308c28f8c7.patch --- lib/Target/Hexagon/RDFCopy.cpp.orig 2025-12-12 10:35:47.000000000 +0000 +++ lib/Target/Hexagon/RDFCopy.cpp @@@@ -108,7 +108,7 @@@@ bool CopyPropagation::scanBlock(MachineB for (NodeAddr IA : BA.Addr->members(DFG)) { if (DFG.IsCode(IA)) { NodeAddr SA = IA; - EqualityMap EM(std::less(DFG.getPRI())); + EqualityMap EM(RegisterRefLess(DFG.getPRI())); if (interpretAsCopy(SA.Addr->getCode(), EM)) recordCopy(SA, EM); } @