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
See the emitted code returning the address of local variables slot:
...
IL_0046: callvirt instance !2 class [mscorlib]System.Func`3<class [System.Core]System.Runtime.CompilerServices.CallSite, object, object>::Invoke(!0, !1)
IL_004b: stloc.0
IL_004c: ldloca.s 0 // address of 'object' local variable used to capture the result of dynamic expression
IL_004e: ret // boom!
}
Expected Behavior:
The analysis of local address returns should think of references taken with ref expression from dynamic values as locally-allocated. The result of dynamic expression always behaves like "temporary", local expression.
Version Used:
master branch @ February 4
Steps to Reproduce:
Expected Behavior:
The analysis of local address returns should think of references taken with
ref
expression from dynamic values as locally-allocated. The result of dynamic expression always behaves like "temporary", local expression.cc @gafter
The text was updated successfully, but these errors were encountered: