[llvm] [NFC] Suppress spurious deprecation warning with MSVC (PR #124764)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 07:48:56 PST 2025
jmorse wrote:
> Is there a way to suppress this warning/error without changing getFirstNonPHI to be defined out-of-line?
Not to my knowledge, but no man knoweth the ways of MSVC,
> Also, it seems odd to me that doing so results in the MSVC diagnostic being suppressed, do you have a reference to the buildbot (if any) where these problems appeared?
No buildbots that I'm aware of -- but I replicated it locally, and @RKSimon experienced it with MSVC too. The suppression comes from the fact that there are no longer any callers to the deprecated call, and part of that is because I copy+pasted the body of getFirstNonPHI rather than calling the const-version of it.
https://github.com/llvm/llvm-project/pull/124764
More information about the llvm-commits
mailing list