Remove frame->f_trace DCHECK, which is not always nullptr.

PiperOrigin-RevId: 322408718
Change-Id: I6ca3caba213e28ffca64df281ff54b970a07cf98
This commit is contained in:
Kibeom Kim 2020-07-21 11:51:17 -07:00 committed by TensorFlower Gardener
parent e01e164d5b
commit 60fa5d1866

View File

@ -50,7 +50,6 @@ class StackTrace final {
int i = 0;
for (; i < kMaxDepth && frame != nullptr; frame = frame->f_back, ++i) {
PyCodeObject* code_obj = frame->f_code;
DCHECK(frame->f_trace == nullptr);
DCHECK(code_obj != nullptr);
Py_INCREF(code_obj);