Fix an instance of -Wunreachable-code-aggressive.

Bug: chromium:1066980
Change-Id: I7efc356b5457c159c8775f51e3ab5732f51c3f18
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3085085
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
This commit is contained in:
Peter Kasting 2021-08-10 07:59:47 -07:00 committed by Crashpad LUCI CQ
parent 7b64a33b24
commit ecefe3cd28

View File

@ -201,12 +201,10 @@ void DoCrash(const StartHandlerForSelfTestOptions& options,
case CrashType::kBuiltinTrap:
__builtin_trap();
break;
case CrashType::kInfiniteRecursion:
int val = 42;
exit(RecurseInfinitely(&val));
break;
}
}