You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As pointed in https://reviews.llvm.org/D100808, ELF format tests succeed with MSVC v14.29 (from Visual Studio 2019) but fail with MSVC v14.33 (from Visual Studio 2022).
The text was updated successfully, but these errors were encountered:
Testing on llvm-objdump/X86/elf-bbaddrmap-disassemble-symbolize-operands.yaml, I've managed to bisect the issue as being a yaml2obj problem and not llvm-objdump/readBBAddrMap. I'm assigning this to me as I should be able to get around to debugging more this week.
I have a fix up at #79168. The problem is we accidentally had side-effects in the expressions of a binary operator. This is unfortunately unspecified behavior in C++ which is why the generated ELF would have fields out of order.
… unspecified. (#79168)
Turns out the problem with
#60013 is due to the fact
that order of operation is unspecified in C++:
https://en.cppreference.com/w/cpp/language/eval_order. A small example
of where this manifests with MSVC can be seen here
https://ooo.godbolt.org/z/bxqKeqzqn.
This patch does the following:
* Removes the addition operations where we sequence more than one
side-effect based expression.
* Removes test guards to now run on Windows
As pointed in https://reviews.llvm.org/D100808, ELF format tests succeed with MSVC v14.29 (from Visual Studio 2019) but fail with MSVC v14.33 (from Visual Studio 2022).
The text was updated successfully, but these errors were encountered: