projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
883f856
)
Declare CtorFtnType only when it is used (#8378)
author
Jonghyun Park
<parjong@gmail.com>
Wed, 30 Nov 2016 20:19:36 +0000
(
05:19
+0900)
committer
Jan Vorlicek
<janvorli@microsoft.com>
Wed, 30 Nov 2016 20:19:36 +0000
(21:19 +0100)
src/classlibnative/bcltype/arraynative.cpp
patch
|
blob
|
history
diff --git
a/src/classlibnative/bcltype/arraynative.cpp
b/src/classlibnative/bcltype/arraynative.cpp
index
f247fc4
..
58fa4dd
100644
(file)
--- a/
src/classlibnative/bcltype/arraynative.cpp
+++ b/
src/classlibnative/bcltype/arraynative.cpp
@@
-176,7
+176,6
@@
void ArrayInitializeWorker(ARRAYBASEREF * arrayRef,
#ifdef _X86_
BEGIN_CALL_TO_MANAGED();
- typedef void (__fastcall * CtorFtnType)(BYTE*, BYTE*);
for (SIZE_T i = 0; i < cElements; i++)
{
@@
-197,6
+196,7
@@
void ArrayInitializeWorker(ARRAYBASEREF * arrayRef,
nop // Mark the fact that we can call managed code
}
#else // _DEBUG
+ typedef void (__fastcall * CtorFtnType)(BYTE*, BYTE*);
(*(CtorFtnType)ctorFtn)(thisPtr, (BYTE*)pElemMT);
#endif // _DEBUG