HomePhabricator

[BlockExtractor] Avoid assert with wrong line format

Description

[BlockExtractor] Avoid assert with wrong line format

Summary:
When the line format is wrong, we may end up accessing out of bound
memory. eg: the test with invalide line will cause assert.
Assertion `idx < size()' failed

The fix is to report fatal when we found mismatched line format.

Reviewers: qcolombet, volkan

Reviewed By: qcolombet

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66444

Details

Committed
jsjiAug 20 2019, 7:46 AM
Reviewer
qcolombet
Differential Revision
D66444: [BlockExtractor] Avoid assert with wrong line format
Parents
rL369388: [X86][BtVer2] Fix latency and throughput of atomic INC/DEC/NEG/NOT.
Branches
Unknown
Tags
Unknown