[llvm] [llvm-rc] Add support for multiplication and division in expressions (PR #143373)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 12:48:29 PDT 2025
cjacek wrote:
I was wondering if we should handle operator precedence correctly, like in `1 + 2 * 3`. With this PR, we currently evaluate addition first, resulting in 9. GNU windres seems to handle precedence properly and gives 7. MSVC rc.exe is odd, it appears to ignore multiplication and division entirely, just outputting 3.
I'm not sure what the best approach is here, what do you think?
https://github.com/llvm/llvm-project/pull/143373
More information about the llvm-commits
mailing list