diff options
author | Mike Danes <onemihaid@hotmail.com> | 2018-06-30 22:45:01 +0300 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2018-06-30 22:45:01 +0300 |
commit | 10729e1a8a65bf3669049bca234187cbaf1a2e70 (patch) | |
tree | bedf4491eda8b883a7330d34d9671039c338488b /src/jit/scopeinfo.cpp | |
parent | 40fdb3e34d4b304f6a4184fd18159deff303878a (diff) | |
download | coreclr-10729e1a8a65bf3669049bca234187cbaf1a2e70.tar.gz coreclr-10729e1a8a65bf3669049bca234187cbaf1a2e70.tar.bz2 coreclr-10729e1a8a65bf3669049bca234187cbaf1a2e70.zip |
Replace compGetMemArray uses
Diffstat (limited to 'src/jit/scopeinfo.cpp')
-rw-r--r-- | src/jit/scopeinfo.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jit/scopeinfo.cpp b/src/jit/scopeinfo.cpp index 41c343548f..66f52a2758 100644 --- a/src/jit/scopeinfo.cpp +++ b/src/jit/scopeinfo.cpp @@ -393,13 +393,7 @@ void CodeGen::siInit() } else { - siLatestTrackedScopes = - static_cast<siScope**>(compiler->compGetMemArray(scopeCount, sizeof(siScope*), CMK_SiScope)); - - for (unsigned i = 0; i < scopeCount; i++) - { - siLatestTrackedScopes[i] = nullptr; - } + siLatestTrackedScopes = new (compiler->getAllocator(CMK_SiScope)) siScope* [scopeCount] {}; } compiler->compResetScopeLists(); |