Skip to content

Commit

Permalink
Provide explicit cast for findHelperTrampoline
Browse files Browse the repository at this point in the history
The cast is required in order to change the return type of
`findHelperTrampoline` to a `intptrj_t` to allow downstream
projects to continue to build without breaking.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Feb 14, 2019
1 parent cbb8cd3 commit 15d6538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/runtime/OMRCodeCacheManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ OMR::CodeCacheManager::findHelperTrampoline(int32_t helperIndex, void *callSite)
OMR::CodeCacheTrampolineCode *
OMR::CodeCacheManager::findHelperTrampoline(void *callingPC, int32_t helperIndex)
{
return self()->findHelperTrampoline(helperIndex, callingPC);
return reinterpret_cast<OMR::CodeCacheTrampolineCode *>(self()->findHelperTrampoline(helperIndex, callingPC));
}

// Synchronize temporary trampolines in all code caches
Expand Down

0 comments on commit 15d6538

Please sign in to comment.