JVM KT-49903 prohibit reordering of 'getstatic System.out'

This commit is contained in:
Dmitry Petrov
2021-11-25 17:39:26 +03:00
committed by TeamCityServer
parent dfa6507cae
commit de3203ee48
2 changed files with 2 additions and 20 deletions
@@ -6,3 +6,5 @@ fun test() {
// JVM_IR_TEMPLATES:
// 0 ALOAD
// 0 ASTORE
// 1 SWAP
// ^ here temporary variable elimination kicks in (instead of inplace argument inlining), producing a SWAP instruction