mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
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:
parent
ae3bc947af
commit
e0cb8d320b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user