Bug 1398785 - Kill structurally dead code in NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_BEGIN generated by Coverity. r=sylvestre

MozReview-Commit-ID: AB3DLFft5aw

--HG--
extra : rebase_source : 6d51c98df43e750d8b21aa8d5de62ab1632afaba
This commit is contained in:
Andi-Bogdan Postelnicu 2017-09-12 10:30:17 +03:00
parent ae3bc947af
commit e0cb8d320b

View File

@ -54,6 +54,14 @@ MOZ_ReportCrash(const char* aStr, const char* aFilename, int aLine)
#define NS_RUNTIMEABORT(msg) __coverity_panic__()
// Kills Structurally dead code (UNREACHABLE)
#define NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_BEGIN(_class) \
NS_IMETHODIMP_(bool) \
NS_CYCLE_COLLECTION_CLASSNAME(_class)::CanSkipThisReal(void* p) \
{ \
__coverity_panic__(); \
_class* tmp = DowncastCCParticipant<_class>(p);
int
GET_JUMP_OFFSET(jsbytecode* pc)
{