diff options
author | Atsushi Kanamori <AtsushiKan@users.noreply.github.com> | 2018-04-18 13:56:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 13:56:42 -0700 |
commit | e88dc7f910b08a4d3edc4972147ff035d164c4c4 (patch) | |
tree | 3fa3990df829cfa6eb20b2238206d96b008eaf3e /src/vm/invokeutil.h | |
parent | 4861cc3bc998fe0edc0be3c4c8ff50b869c415db (diff) | |
download | coreclr-e88dc7f910b08a4d3edc4972147ff035d164c4c4.tar.gz coreclr-e88dc7f910b08a4d3edc4972147ff035d164c4c4.tar.bz2 coreclr-e88dc7f910b08a4d3edc4972147ff035d164c4c4.zip |
Enable Invoke and GetValue for ref-returning members (#17639)
* Enable Invoke and GetValue for ref-returning members
https://github.com/dotnet/corefx/issues/15960
Returned magic object is the object pointed to by
the ref. If the ref is null, NullReferenceException.
* Fix error message
* Found way to reuse InvokeUtil::CreateObject
* Remove comment, BYREF case.
Diffstat (limited to 'src/vm/invokeutil.h')
-rw-r--r-- | src/vm/invokeutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/invokeutil.h b/src/vm/invokeutil.h index ec8114f76a..99450d05e1 100644 --- a/src/vm/invokeutil.h +++ b/src/vm/invokeutil.h @@ -105,7 +105,7 @@ public: // Given a type, this routine will convert an return value representing that // type into an ObjectReference. If the type is a primitive, the // value is wrapped in one of the Value classes. - static OBJECTREF CreateObject(TypeHandle th, void * pValue); + static OBJECTREF CreateObjectAfterInvoke(TypeHandle th, void * pValue); // This is a special purpose Exception creation function. It // creates the TargetInvocationExeption placing the passed |