Adjust workaround for event source resource stripping (#81528)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Mon, 6 Feb 2023 23:54:55 +0000 (08:54 +0900)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 23:54:55 +0000 (08:54 +0900)
commit3efe6f45417a433f2bac57bbfdb4f81cf4003ee1
tree3bc31ba3186c5d8e27e45b93005e18044414916c
parent4d333e1a2ae8390ba61551cdfc0c677976b34bd7
Adjust workaround for event source resource stripping (#81528)

The used approach only worked in debug builds. `InlineableStringResource` is not one of the nodes that survives from scanning phase to compilation phase. Make the compiler think `GetResourceString` was reflected on instead.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/CustomAttributeBasedDependencyAlgorithm.cs