[ORC] Fix sorting of contructors by priority
authorJonas Hahnfeld <jonas.hahnfeld@cern.ch>
Thu, 7 Apr 2022 14:19:11 +0000 (16:19 +0200)
committerJonas Hahnfeld <jonas.hahnfeld@cern.ch>
Wed, 11 May 2022 07:06:41 +0000 (09:06 +0200)
commite451d552348bc714614d294e32dfbe7ec2cd4005
tree7d0eebff41d2d38477374663681a1b43d301d718
parent85285be9c37ad0b6e3dabe82248d8917a6ebd5ec
[ORC] Fix sorting of contructors by priority

The code was incorrectly sorting by the function address.

Differential Revision: https://reviews.llvm.org/D123311
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
llvm/test/ExecutionEngine/OrcLazy/global-ctors-and-dtors.ll