Skip to content

Commit

Permalink
ARM64 CFI support replace unreached with assert
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfKornmannEnvision committed Aug 20, 2020
1 parent b4b0215 commit 8616edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/coreclr/src/jit/unwindarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,8 @@ void Compiler::unwindSaveRegPreindexed(regNumber reg, int offset)
void Compiler::unwindSaveNext()
{
#if defined(TARGET_UNIX)
if (generateCFIUnwindCodes())
{
unreached(); // do not use unwindSaveNext when generating CFI codes as there is no code for this
}
// do not use unwindSaveNext when generating CFI codes as there is no code for this
assert(!generateCFIUnwindCodes());
#endif // TARGET_UNIX

UnwindInfo* pu = &funCurrentFunc()->uwi;
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Native/Unix/Common/pal_io_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ inline static int32_t Common_Poll(PollEvent* pollEvents, uint32_t eventCount, in
}
else
{
pollfds = calloc(eventCount, sizeof(*pollfds));
pollfds = (pollfd*)calloc(eventCount, sizeof(*pollfds));
if (pollfds == NULL)
{
return Error_ENOMEM;
Expand Down

0 comments on commit 8616edb

Please sign in to comment.